Ethernet Products
Determine ramifications of Intel® Ethernet products and technologies
5232 Discussions

Getting "Driver cannot attach the device" error while trying to use mellanox NIC's with ovs-dpdk

sai19
Beginner
897 Views

Hi Team, 

 

I am using dpdk 22.11.4 with open Vswitch 3.1.2

 

(1) I am trying to attach below mellanox NIC's to ovs-dpdk,

 

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

 

(2) since it's different from how we use intel NIC's with dpdk/ovs-dpdk - where we use vfio_pcicdriver. But in this case since these are mellanox NIC's they are binded to mlx5_core driver as below

0000:12:00.0 'MT27710 Family [ConnectX-4 Lx] 1015' if=ens1f0np0 drv=mlx5_core unused=vfio-pci

0000:12:00.1 'MT27710 Family [ConnectX-4 Lx] 1015' if=ens1f1np1 drv=mlx5_core unused=vfio-pci

 

(3) below is the error which I am running into while I try use these mellanox NIC's with ovs-dpdk

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

 

Could anyone help with this please - from initial debugging these errors are seem to be from initial probe itself

 

Help much appreciated. Thanks!

0 Kudos
1 Reply
Sazirah
Employee
841 Views

Hi sai19,


Thank you for posting in Intel Ethernet Communities.


For support with DPDK we will need to redirect you. Kindly refer to DPDK.org (www.dpdk.org) or open an IPS case at IPS Support (https://www.intel.com/content/www/us/en/design/support/ips/training/welcome.html)


After registration, you will be able to open a case on the Intel® Premier Support (IPS) (https://www.intel.com/content/www/us/en/design/support/ips/training/welcome.html) platform and your request will be handled by one of our engineers as soon as possible.  


Best Regards,

Sazzy_Intel


0 Kudos
Reply