5 uninstalling sr-iov driver – Dell Mellanox Family of Adapters User Manual
Page 45

User Manual for Mellanox ConnectX®-3 10/40 Gigabit Ethernet Adapters for Dell PowerEdge Servers
Rev 1.1
Mellanox Technologies
45
Step 3.
Go to Details->Add hardware ->PCI host device.
Step 4.
Choose a Mellanox virtual function according to its PCI device (e.g., 00:03.1)
Step 5.
If the Virtual Machine is up reboot it, otherwise start it.
Step 6.
Log into the virtual machine and verify that it recognizes the Mellanox card. Run:
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.2.7.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.
Step 3.
Restart the server.
lspci | grep Mellanox
[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