5.3.4. 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 | grep -i cornelisorlspci | grep -i hfi.To enable VFs on a PF:
echo 7 > /sys/bus/pci/devices/<DOMAIN:BUS:DEVICE.FUNCTION>/sriov_numvfs
To disable VFs on a PF:
echo 0 > /sys/bus/pci/devices/<DOMAIN:BUS:DEVICE.FUNCTION>/sriov_numvfs