User Manual

Rev 2.1-1.0.6
Mellanox Technologies
93
Step 5. Install the MLNX_OFED driver for Linux that supports SR-IOV.
Use '--enable-sriov' installation parameter to burn firmware with SR-IOV support. The
number of virtual functions (VFs) will be set to 16.
Step 6. Verify the HCA is configured to support SR-IOV.
1. Verify in the [HCA] section the following fields appear
1
,
2
:
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.
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:
[root@selene ~]# mstflint -dev <PCI Device> dc
[HCA]
num_pfs = 1
total_vfs = <0-63>
sriov_en = true
Parameter Recommended Value
num_pfs 1
Note: This field is optional and might not always
appear.
total_vfs 63
sriov_en true
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
mlxburn -fw ./fw-ConnectX3-rel.mlx -dev /dev/mst/mt4099_pci_cr0 -conf ./MCX341A-
XCG_Ax.ini
options mlx4_core num_vfs=5 port_type_array=1,2 probe_vf=1