Why this messages occur?

net_mlx5: can not get IB device “mlx5_0” ports number

Why is the above message displayed because the port count is recognized as 0?

I want to prevent this warning message from printing. Is there any way?

4.7.1.0.0.1 OFED is installed and two Connect X-5s are connected.

[root@SNIPER hwdata]# lspci |grep Mella

3b:00.0 Ethernet controller: Mellanox Technologies MT27800 Family [ConnectX-5]

af:00.0 Ethernet controller: Mellanox Technologies MT27800 Family [ConnectX-5]

Hi Samer,

I tried the latest versions of dpdk-19.08 and 19.05, both of which produced the same message.

I I uploaded the OFED version on its own optimized OS based centos7.2. I get this message, but it works fine.

Below is the message that occurs.

​EAL: Detected 88 lcore(s)

EAL: Detected 2 NUMA nodes

EAL: Multi-process socket /var/run/dpdk/rte/mp_socket

EAL: Selected IOVA mode 'PA’

EAL: Probing VFIO support…

EAL: PCI device 0000:3b:00.0 on NUMA socket 0

EAL: probe driver: 15b3:1017 net_mlx5

net_mlx5: can not get IB device “mlx5_0” ports number

EAL: PCI device 0000:af:00.0 on NUMA socket 1

EAL: probe driver: 15b3:1017 net_mlx5

USER1: Initializing port 0 …

Creating queues: nb_rxq=16 nb_txq=64…

Hi Kim,

Which OS are you using ?

Is this bare-metal or VM ?

Can you share full output with the “net_mlx5: can not get IB device “mlx5_0” ports number” ?

Thanks,

Samer

Try to use few LTS DPDK releases and see if it happens with specific one. Check a master branch as well.

Hi Kim,

As suggested please try different DPDK version (latest GA) and check if you encounter the same

behavior .

Thanks,

Samer