# Need help disabling hardware LLDP (C5X-EX)

**URL:** <https://forums.developer.nvidia.com/t/need-help-disabling-hardware-lldp-c5x-ex/294083>\
**Category:** Mellanox OFED\
**Created:** [May 25, 2024, 3:32am UTC](https://forums.developer.nvidia.com/t/need-help-disabling-hardware-lldp-c5x-ex/294083 "2024-05-25T03:32:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![darward](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@darward](https://forums.developer.nvidia.com/u/darward)\
**Post date:** [May 25, 2024, 3:32am UTC](https://forums.developer.nvidia.com/t/need-help-disabling-hardware-lldp-c5x-ex/294083/1 "2024-05-25T03:32:19Z")

</div>

Hi All

This should be easy to find but I’m struggling…

I have to disable hardware based LLDP so that I can use software LLDP on Rocky Linux 9.4 hosts that have mixed NIC cards in them (using ISC LLDP, all working)

The Connect5X-EX cards have LLDP enabled in hardware so are eating LLDP frames before being passed and not forwarding the software LLDP frames

I have installed the latest Mellanox drivers with tools but can’t seem to find how to do this simple function

Please advise

Cheers  
Darren

---

<div class="post-metadata">

**Author:** ![ipavis](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/ipavis/32/207169_2.png) [@ipavis](https://forums.developer.nvidia.com/u/ipavis)\
**Post date:** [May 27, 2024, 8:16am UTC](https://forums.developer.nvidia.com/t/need-help-disabling-hardware-lldp-c5x-ex/294083/2 "2024-05-27T08:16:49Z")

</div>

Hello,  
Thanks for writing us!

To disable hardware-based LLDP on ConnectX-5 EX cards so that you can use software-based LLDP on Rocky Linux 9.4 hosts, you need to use the `mlxconfig` tool that comes with the Mellanox drivers.

Here are the general steps you would follow to disable hardware-based LLDP using `mlxconfig`:

1. **Identify the Device:** First, you need to identify the PCI device ID of the ConnectX-5 EX card. You can do this by running the `lspci` command and looking for the device in the output.  
` lspci | grep -i Mel`
2. **Check Current LLDP Configuration:** Before making any changes, it’s a good idea to check the current LLDP configuration of the card. You can do this by running the following command:

```auto
mlxconfig -d <device_id> query | grep -i LLDP

```

You should get the settings for LLDP

```auto
        LLDP_NB_DCBX_P1 True(1)        
        LLDP_NB_RX_MODE_P1 True(1)          
        LLDP_NB_TX_MODE_P1 True(1)          
        LLDP_NB_DCBX_P2 True(1)        
        LLDP_NB_RX_MODE_P2 True(1)          
        LLDP_NB_TX_MODE_P2 True(1)

```

Replace `<device_id>` with the PCI device ID of your ConnectX-5 EX card.  
3. **Disable Hardware LLDP:** To disable hardware LLDP, you would use the `mlxconfig` tool with the `set` parameter to modify the card’s configuration. The exact parameter to disable LLDP might vary based on the firmware version, but it generally looks something like this:

```auto
mlxconfig -d <device_id> set <Parameter>=0

```

Again, replace `<device_id>` with the PCI device ID of your ConnectX-5 EX card.  
4. **Apply Changes:** After running the above command, you may need reboot the host or reset the network adapter for the changes to take effect.

Hope this helps!  
Thanks and have a wonderful day!  
Ilan.

---

<div class="post-metadata">

**Author:** ![scott.w.reeve1](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@scott.w.reeve1](https://forums.developer.nvidia.com/u/scott.w.reeve1)\
**Post date:** [March 22, 2026, 1:23pm UTC](https://forums.developer.nvidia.com/t/need-help-disabling-hardware-lldp-c5x-ex/294083/3 "2026-03-22T13:23:17Z")

</div>

Hope this applies to the MT26448.

from “lspci -v” :

**07:00.0 Ethernet controller: Mellanox Technologies MT26448 [ConnectX EN 10GigE, PCIe 2.0 5GT/s] (rev b0)  
Subsystem: Mellanox Technologies Device 0015  
Flags: bus master, fast devsel, latency 0, IRQ 47  
Memory at fce00000 (64-bit, non-prefetchable) [size=1M]  
Memory at fb800000 (64-bit, prefetchable) [size=8M]  
Expansion ROM at fcd00000 [disabled] [size=1M]  
Capabilities: [40] Power Management version 3  
Capabilities: [48] Vital Product Data  
Capabilities: [9c] MSI-X: Enable+ Count=128 Masked-  
Capabilities: [60] Express Endpoint, IntMsgNum 0  
Capabilities: [100] Alternative Routing-ID Interpretation (ARI)  
Capabilities: [148] Device Serial Number 00-02-c9-03-00-54-55-62  
Kernel driver in use: mlx4\_core  
Kernel modules: mlx4\_core**

root@u25:~/\_mft/mft-4.35.0-159-x86\_64-deb# mlxconfig -d 07:00.0 query | grep -i LLDP  
root@u25:~/\_mft/mft-4.35.0-159-x86\_64-deb# mlxconfig -d 07:00.0 query  
-E- Failed to open the device

Not sure what to put in for DeviceId.
