User Manual
Driver FeaturesRev 2.2-1.0.1
Mellanox Technologies
120
Step 7. Add the device to the /etc/sysconfig/network-scripts/ifcfg-ethX configuration file.
The MAC address for every virtual function is configured randomly, therefore it is not nec-
essary to add it.
4.15.5 Uninstalling SR-IOV Driver
To uninstall SR-IOV driver, perform the following:
Step 1. For Hypervisors, detach all the Virtual Functions (VF) from all the Virtual Machines (VM)
or stop the Virtual Machines that use the Virtual Functions.
Please be aware, stopping the driver when there are VMs that use the VFs, will cause machine to hang.
Step 2. Run the script below. Please be aware, uninstalling the driver deletes the entire driver's file,
but does not unload the driver.
[root@swl022 ~]# /usr/sbin/ofed_uninstall.sh
This program will uninstall all OFED packages on your machine.
Do you want to continue?[y/N]:y
Running /usr/sbin/vendor_pre_uninstall.sh
Removing OFED Software installations
Running /bin/rpm -e --allmatches kernel-ib kernel-ib-devel libibverbs libibverbs-devel
libibverbs-devel-static libibverbs-utils libmlx4 libmlx4-devel libibcm libibcm-devel
libibumad libibumad-devel libibumad-static libibmad libibmad-devel libibmad-static
librdmacm librdmacm-utils librdmacm-devel ibacm opensm-libs opensm-devel perftest com-
pat-dapl compat-dapl-devel dapl dapl-devel dapl-devel-static dapl-utils srptools infini-
band-diags-guest ofed-scripts opensm-devel
warning: /etc/infiniband/openib.conf saved as /etc/infiniband/openib.conf.rpmsave
Running /tmp/2818-ofed_vendor_post_uninstall.sh
Step 3. Restart the server.
4.15.6 Configuring Pkeys and GUIDs under SR-IOV
4.15.6.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:
options mlx4_core port_type_array=1,2
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:
options mlx4_core port_type_array='0000:04:00.0-1;1,0000:05:00.0-2;2