Featured Post

Links library

2018/07/04

Mellanox SR-IOV VF


Change the numbers of VFs for Mellanox ConnectX-5 (Draft, work in progress)


s2d.dk is not responsible for any errors, or for the results obtained from the use of this information on s2d.dk. All information in this site is provided as "draft notes" and "as is", with no guarantee of completeness, accuracy, timeliness or of the results obtained from the use of this information. Always test in a lab setup, before use any of the information in production environment. The names of actual companies and products mentioned herein may be the trademarks of their respective owners.


  1. List the current number of VFs
    • Get-NetAdapterSriov | sort name | ft Name, InterfaceDescription, SriovSupport, NumVFs -AutoSize
  2. List the PCI Device Name
    • mlxfwmanager.exe --query
  3. Example with 256 VF
    • mlxconfig.exe -d mt4119_pciconf0 set SRIOV_EN=1 NUM_OF_VFS=254
  4. The 254 VFs are not supported
  5. Change the numbers of VF to 127
    • mlxconfig.exe -d mt4119_pciconf0 set SRIOV_EN=1 NUM_OF_VFS=127
  6. 1-127 is supported
  7. List the current number of VFs after the reboot, list 123
    • Get-NetAdapterSriov | sort name | ft Name, InterfaceDescription, SriovSupport, NumVFs -AutoSize
  8. Review the NUM_OF_VF
    • mlxconfig.exe -d mt4119_pciconf0 q
  9. The NUM_OF_VF show 127
  10. List the VMs use of the VFs
    • Get-NetAdapterSriovVf | sort name | ft -AutoSize