User Manual
Rev 2.3-1.0.1
Mellanox Technologies
173
1. Verify in the [HCA] section the following fields appear
1
,
2
:
[HCA]
num_pfs = 1
total_vfs = <0-126>
sriov_en = true
Parameter Recommended Value
num_pfs 1
Note:
This field is optional and might not always
appear.
total_vfs • When using firmware version 2.31.5000 and
above, the recommended value is 126.
• When using firmware version 2.30.8000 and
below
, the recommended value is 63
Note: Before setting number of
VFs in SR-IOV,
please make sure your system can support that
amount of VFs. Setting number of VFs larger than
what your Hardware and Software can support may
cause your system to cease working.
sriov_en true
2. Add the above fields to the INI if they are missing.
3. Set the total_vfs parameter to the desired number if you need to change the num-
ber of total VFs.
4. Reburn the firmware using the mlxburn tool if the fields above were added to the
INI, or the
total_vfs parameter was modified.
If the mlxburn is not installed, please downloaded it from the Mellanox website
http://www
.mellanox.com > products > Firmware tools
mlxburn -fw ./fw-ConnectX3-rel.mlx -dev /dev/mst/mt4099_pci_cr0 -conf ./MCX341A-
XCG_Ax.ini
Step 7. Create the text file /etc/modprobe.d/mlx4_core.conf if it does not exist, otherwise delete its
contents.
Step 8. Insert an "option" line in the /etc/modprobe.d/mlx4_core.conf file to set the number of VFs.
the protocol type per port, and the allowed number of virtual functions to be used by the
physical function driver (probe_vf).
For example:
options mlx4_core num_vfs=5 port_type_array=1,2 probe_vf=1
1. If SR-IOV is supported, to enable SR-IOV (if it is not enabled), it is sufficient to set “sriov_en = true” in the INI.
2. If the HCA does not support SR-IOV, please contact Mellanox Support: support@mellanox.com