User Manual

Driver FeaturesRev 2.1-1.0.6
Mellanox Technologies
98
If such ini file cannot be found in the firmware directory, you may want to dump the config-
uration file using mstflint. Run:
Step 4. Edit the ini file that you found in the previous step, and add the following lines to the [HCA]
section in order to support 63 VFs.
Step 5. Create a binary image using the modified ini file. Run:
The file <file name>.bin is a firmware binary file with SR-IOV enabled that has 63 VFs. It
can be spread across all machines and can be burnt using mstflint, which is part of the bun-
dle, using the following command:
4.13.7 Configuring Pkeys and GUIDs under SR-IOV
4.13.7.1 Port Type Management
Port Type management is static when enabling SR-IOV (the connectx_port_config script will
not work). The port type is set on the Host via a module parameter,
port_type_array, in
mlx4_core. This parameter may be used to set the port type uniformly for all installed Con-
nectX® HCAs, or it may specify an individual configuration for each HCA.
This parameter should be specified as an options line in the file
/etc/modprobe.d/
mlx4_core.conf
.
For example, to configure all HCAs to have Port1 as IB and Port2 as ETH, insert the following
line:
To set HCAs individually, you may use a string of
Domain:bus:device.function=x;y
For example, if you have a pair of HCAs, whose PFs are 0000:04:00.0 and 0000:05:00.0, you
may specify that the first will have both ports as IB, and the second will have both ports as ETH
as follows:
# mstflint -dev <PCI device> dc > <ini device file>
;; SRIOV enable
total_vfs = 63
1
num_pfs = 1
sriov_en = true
1. Some servers might have issues accepting 63 Virtual Functions or more. In such case, please set the
number of "total_vfs" to any required value.
# mlxburn -fw ./<fw name>mlx -conf <modified ini file> -wrimage <file name>.bin
# mstflint -dev <PCI device> -image <file name>.bin b
After burning the firmware, the machine must be rebooted. If the driver is only
restarted, the machine may hang and a reboot using power OFF/ON might be required.
options mlx4_core port_type_array=1,2
options mlx4_core port_type_array='0000:04:00.0-1;1,0000:05:00.0-2;2