Dell Mellanox Family of Adapters User Manual
Page 42

Driver Installation and Configuration
Rev 1.1
Mellanox Technologies
42
For example, to Intel systems, add:
Step 7.
Enable SRIOV number of functions in PCI. Note: by default 8 virtual functions are enabled
in PCI level.
Step 8.
Create the text file /etc/modprobe.d/mlx4_core.conf if it does not exist, otherwise delete its
contents.
Step 9.
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:
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.32-36.x86-645)
root (hd0,0)
kernel /vmlinuz-2.6.32-36.x86-64 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
intel_iommu=on
a
initrd /initrd-2.6.32-36.x86-64.img
a. Please make sure the parameter "intel_iommu=on" exists when updating the /boot/grub/grub.conf
file, otherwise SR-IOV cannot be loaded.
options mlx4_core num_vfs=5 port_type_array=1,2 probe_vf=1
Parameter
Recommended Value
num_vfs
•
If absent, or zero:
no VFs will be available
•
If its value is a single number in the range of 0-63: The driver
will enable the
num_vfs
VFs on the HCA and this will be
applied to all ConnectX® HCAs on the host.
•
If its format is a string: The string specifies the
num_vfs
parameter separately per installed HCA.
•
The string format is: "bb:dd.f-v,bb:dd.f-v,…"
•
bb:dd.f = bus:device.function of the PF of the HCA
•
v = number of VFs to enable for that HCA
For example:
•
num_vfs=5
- The driver will enable 5 VFs on the HCA and
this will be applied to all ConnectX® HCAs on the host
•
num_vfs=00:04.0-5,00:07.0-8
- The driver will enable 5
VFs on the HCA positioned in BDF 00:04.0 and 8 on the one in
00:07.0)
Note: PFs not included in the above list will not have SR-
IOV enabled.