5.3.4. Configure and Verify SR-IOV
Before enabling VFs, confirm that the CN6000 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
Note
sriov_numvfsmust be set to0(disabled) or7(all VFs enabled). Partial VF counts are not supported.To disable VFs on a PF:
echo 0 > /sys/bus/pci/devices/<DOMAIN:BUS:DEVICE.FUNCTION>/sriov_numvfs