I have a dual-port ConnectX-6 Dx card in the latest Fedora 41. I wish to use it such that every VM gets its own Virtual Function in vDPA mode. At this moment I don’t want to setup OVS because the VMs don’t need to talk to each other.
I can’t figure out how to setup this simple scenario.
After boot, lspci shows:
0008:00:00.0 Ethernet controller: Mellanox Technologies MT2892 Family [ConnectX-6 Dx]
0008:00:00.1 Ethernet controller: Mellanox Technologies MT2892 Family [ConnectX-6 Dx]
0008:00:00.0 corresponds to mlx5_2, so I do this to create a VF:
echo 1 > /sys/class/infiniband/mlx5_2/device/sriov_numvfs
and now see a new PCI deice:
0008:00:00.2 Ethernet controller: Mellanox Technologies ConnectX Family mlx5Gen Virtual Function
I think I now need vhost-vdpa loaded for this VF, but can’t find how to do that… Am I even on the right track?