Failed to config the SR-IOV and attach the VF to dpdk

I have one mellanox network card. I would like to separate one VF by SR-IOV from this card. And attach this VF to ovs as dpdk interface. But when I got the VF, it can’ t be found by the dpdk. Lark20190411-210033

It seems the PCI is not available(I guess).

I followed the steps of the guide . https://community.mellanox.com/s/article/howto-configure-sr-iov-for-connectx-4-connectx-5-with-kvm--ethernet-x

The only difference to the guide is that the pci module is not loaded. Any suggestions about this ? Thanks. If need more info, i will provide it.

Lark20190411-210823

Hi,

Are you sure your interface is UP (your VF) ?

Did you unbind it bind it correctly ?

#Unbind

echo 0000:81:00.2 > /sys/bus/pci/drivers/mlx5_core/unbind

#set a MAC address

ip link set vf 0 mac 00:22:33:44:55:66

#Bind

echo 0000:81:00.2 > /sys/bus/pci/drivers/mlx5_core/bind

The PCI module not loaded is not related to this error, it is an EAL error.

Check again the PCI ID you specify and if the interface is up.

Thanks

Marc

What does motherboard use?

SR-IOV needs to enable the following in the BIOS settings.

・ SR-IOV

・ ACS

・ PCI ARI (optional)

reference

Maybe I think ACS is not enabled.

I have confirmed that it can be set with Asrock’s x370 / x470 / b350 mother, but I have not seen it elsewhere.

It may be only you do not know.