Unable to add melanox nic's to ovs dpdk

Posted on

Getting into below error while we try to add below melanox nic's to ovs dpdk in rhel 9.2 with openvswitch 3.1.2 and dpdk 22.11.4

pci@0000:12:00.0 ens1f0np0 network MT27710 Family [ConnectX-4 Lx]
pci@0000:12:00.1 ens1f1np1 network MT27710 Family [ConnectX-4 Lx]

The above ones are the ones we are trying to add, getting below error in logs,

2024-04-23T10:59:43.414Z|00119|dpdk|ERR|EAL: Driver cannot attach the device (0000:12:00.0)
2024-04-23T10:59:43.414Z|00120|dpdk|ERR|EAL: Failed to attach device on primary process
2024-04-23T10:59:43.414Z|00121|netdev_dpdk|WARN|Error attaching device '0000:12:00.0' to DPDK
2024-04-23T10:59:43.414Z|00122|netdev|WARN|dpdk-p2: could not set configuration (Invalid argument)
2024-04-23T10:59:43.414Z|00123|dpdk|ERR|Invalid port_id=32


** We tried also to attach to dpdk driver vfio-pci detaching from mlx5_core and then use it with ovs-dpdk -> then also getting same error

** By referring to https://askubuntu.com/questions/1385081/error-attaching-device-to-dpdk, we tried to directly use with ovs dpdk - even that gives the same error

** Where as on same server we are able to successfully add below intel NIC's after attaching to vfio-pci and successfully use it with ovs dpdk

pci@0000:37:00.2 ens2f2 network I350 Gigabit Network Connection
pci@0000:37:00.3 ens2f3 network I350 Gigabit Network Connection

** Help is much appreciated - why is the issue seen only with mellanox? are these not supported with rhel9.2

Responses