Skip to main content

Mellanox SR-IOV

Fix for "unknown header type 7f, ignoring device":  PF_NUM_OF_VF_VALID = 1

sudo mstconfig -d 06:00.0 set PF_NUM_OF_VF_VALID=1

After a reboot:

echo 2 | sudo tee /sys/bus/pci/devices/0000:06:00.0/sriov_numvfs
echo 2 | sudo tee /sys/bus/pci/devices/0000:06:00.1/sriov_numvfs

...yields:

06:00.0 Ethernet controller: Mellanox Technologies MT27710 Family [ConnectX-4 Lx]
06:00.1 Ethernet controller: Mellanox Technologies MT27710 Family [ConnectX-4 Lx]
06:00.2 Ethernet controller: Mellanox Technologies MT27710 Family [ConnectX-4 Lx]
06:00.3 Ethernet controller: Mellanox Technologies MT27710 Family [ConnectX-4 Lx]
06:00.4 Ethernet controller: Mellanox Technologies MT27710 Family [ConnectX-4 Lx Virtual Function]
06:00.5 Ethernet controller: Mellanox Technologies MT27710 Family [ConnectX-4 Lx Virtual Function]
06:00.6 Ethernet controller: Mellanox Technologies MT27710 Family [ConnectX-4 Lx Virtual Function]
06:00.7 Ethernet controller: Mellanox Technologies MT27710 Family [ConnectX-4 Lx Virtual Function]

0 and 1 are the "native" interfaces, port 1 and 2.
2 and 3 are NPARs (i.e. NUM_OF_PF=4 -- VERY poorly documented)
4 and 5 are SRIOV VFs for port 1
6 and 7 are SRIOV VFs for port 2