5.3.6. Configure and Verify SR-IOV
Before enabling VFs, confirm that the CN5000 PF reports the expected VF count (7):
cat /sys/bus/pci/devices/<DOMAIN:BUS:DEVICE.FUNCTION>/sriov_totalvfs
Note
To locate your PCIe device address, run:
lspci -D -d 0x434e:
-Ddisplays the full DOMAIN:BUS:DEVICE.FUNCTION prefix while-d 0x434especifies the Cornelis Networks' PCI vendor ID.Ensure that the HFI1 driver is loaded before continuing to the next step.
To enable VFs on a PF:
echo 7 > /sys/bus/pci/devices/<DOMAIN:BUS:DEVICE.FUNCTION>/sriov_numvfs
To confirm creation of the VFs, run lspci again and you should see 7 new pci devices with the same domain, bus, and device values as the PF but with the function value enumerating from 1 to 7.
<DOMAIN.BUS.DEVICE.X> Fabric controller: Cornelis Networks CN5000…
To disable VFs on a PF:
echo 0 > /sys/bus/pci/devices/<DOMAIN:BUS:DEVICE.FUNCTION>/sriov_numvfs