Skip to main content

Cornelis Technical Documentation

5.3.4. Configure and Verify SR-IOV

  1. 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 cornelis or lspci | grep -i hfi.

  2. To enable VFs on a PF:

    echo 7 > /sys/bus/pci/devices/<DOMAIN:BUS:DEVICE.FUNCTION>/sriov_numvfs
  3. To disable VFs on a PF:

    echo 0 > /sys/bus/pci/devices/<DOMAIN:BUS:DEVICE.FUNCTION>/sriov_numvfs