How to connectx-5 tx disable

Hi.

I want to know how to disable tx by modifying the driver source code. (Set registers or API calls)

If i commanded “ifconfig eth4 down” then eth4 and eth5 should be link down state.

(eth4 and eth5 is loop back)

Please let me know.

Thank you.

system info

OS : fedora 27

mellanoox driver : MLNX_EN_SRC-4.6-1.0.1.1

PCI

±[0000:5d]-±00.0-[5e]–±00.0 Mellanox Technologies MT27800 Family [ConnectX-5] [15b3:1017]

| | -00.1 Mellanox Technologies MT27800 Family [ConnectX-5] [15b3:1017]

[root@ ~]# ethtool -i eth4

driver: mlx5_core

version: 4.6-1.0.1

firmware-version: 16.25.1020 (ADV0000000009)

expansion-rom-version:

bus-info: 0000:5e:00.0

supports-statistics: yes

supports-test: yes

supports-eeprom-access: no

supports-register-dump: no

supports-priv-flags: yes

[root@ ~]# ethtool -i eth5

driver: mlx5_core

version: 4.6-1.0.1

firmware-version: 16.25.1020 (ADV0000000009)

expansion-rom-version:

bus-info: 0000:5e:00.1

supports-statistics: yes

supports-test: yes

supports-eeprom-access: no

supports-register-dump: no

supports-priv-flags: yes

[root@ ~]# ifconfig eth4 down

[root@ ~]# ethtool eth4 | grep -i “link detected”

Link detected: no

[root@ ~]# ethtool eth5 | grep -i “link detected”

Link detected: yes

Hello Kim,

Hope you are doing well.

In regard to your question we do not support modification of our drivers. We only support them as they are when you download them.

Thanks,

Abigail

Hi Abigail,

The reason for the Tx disable is to develop the LLR function.

LLR info URL

https://www.manualslib.com/manual/102678/Metrobility-Optical-Systems-Radiance-10-100mbps-Access-Optical-Network-Unit.html?page=18

Please let me know if this feature is supported.

We only support them as they are when you download them.

→ Sorry. I don’t understand. Please tell me more detail.

Can you share a connectx-5 datasheet with register information?

Thank you.

Hello Kim,

What I meant by my previous statement is that we do not support changing the code of the MLNX driver. It is open source so you can modify it but we do not provide support for modifying our driver.

Thanks,

Abigail