Skip to main content

Cornelis Technical Documentation

5.3.6. 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 -D -d 0x434e:

    -D displays the full DOMAIN:BUS:DEVICE.FUNCTION prefix while -d 0x434e specifies the Cornelis Networks' PCI vendor ID.

  2. Ensure that the HFI1 driver is loaded before continuing to the next step.

  3. To enable VFs on a PF:

    echo 7 > /sys/bus/pci/devices/<DOMAIN:BUS:DEVICE.FUNCTION>/sriov_numvfs
  4. To confirm creation of the VFs, run lspci again and you should see seven 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…
  5. To disable VFs on a PF:

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