DPDK testpmd can't access device

EAL: Detected 2 lcore(s)

EAL: Probing VFIO support…

EAL: PCI device 0000:06:00.0 on NUMA socket -1

EAL: probe driver: 15b3:1015 net_mlx5

PMD: mlx5.c:428: mlx5_pci_probe(): cannot access device, is mlx5_ib loaded? [ Yes it is loaded ]

EAL: PCI device 0000:06:00.1 on NUMA socket -1

EAL: probe driver: 15b3:1015 net_mlx5

PMD: mlx5.c:428: mlx5_pci_probe(): cannot access device, is mlx5_ib loaded?

EAL: No probed ethernet devices

PANIC in main():

Empty set of forwarding logical cores - check the core mask supplied in the command parameters

Thank you for mentioning this. I had no idea and struggled with this for a long time. I forgot one time to bind the Mellanox card to the UIO driver, and suddenly it worked! I wish that had been in the documentation somewhere.

Hi Kaijun,

Did you bind the devices to UIO/VFIO? If so, you should bind it back to kernel driver. Mellanox PMD doesn’t use UIO/VFIO but its control path goes through regular kernel driver unlike Intel NICs.

Thanks,

Yongseok

Thanks all yes that worked.

— Original Message —

Thank you for the suggestion. We will put more effort to improve documentation. Meanwhile, please refer to the following ones.

  1. DPDK.org - DPDK doc http://dpdk.org/doc/nics
  1. MLX4 poll mode driver http://dpdk.org/doc/guides/nics/mlx4.html

  2. MLX5 poll mode driver http://dpdk.org/doc/guides/nics/mlx5.html

  1. Mellanox.com http://www.mellanox.com/page/products_dyn?product_family=209&mtag=pmd_for_dpdk - LTS(Long-Term Support) version is released here. We will move to MLNX_DPDK_16.11_1.0 this month.

Quick Start Guide http://www.mellanox.com/related-docs/prod_software/MLNX_DPDK_Quick_Start_Guide_v2.2_4.2.pdf is still applicable to 16.11 and coming 17.02.

Thanks,

Yongseok