User guide

User Guide NetXtreme II
September 2013
Broadcom Corporation
Document INGSRVT78-CDUM100-R Unloading/Removing the Linux Driver Page 151
UNLOADING/REMOVING THE LINUX DRIVER
Unloading/Removing the Driver from an RPM Installation
Removing the Driver from a TAR Installation
UNLOADING/REMOVING THE DRIVER FROM AN RPM INSTALLATION
NOTES:
The examples used in this procedure refer to the bnx2 driver, but also apply to the bnx2x driver.
On 2.6 kernels, it is not necessary to bring down the eth# interfaces before unloading the driver module.
If the cnic driver is loaded, unload the cnic driver before unloading the bnx2 driver.
Prior to unloading the bnx2i driver, disconnect all active iSCSI sessions to targets.
To unload the driver, use ifconfig to bring down all eth# interfaces opened by the driver, and then type the following:
rmmod bnx2
NOTE: The above command will also remove bnx2, bnx2x, and cnic modules.
If the driver was installed using RPM, do the following to remove it:
rpm -e netxtreme2
REMOVING THE DRIVER FROM A TAR INSTALLATION
NOTE: The examples used in this procedure refer to the bnx2 driver, but also apply to the bnx2x and bnx2i drivers.
If the driver was installed using make install from the tar file, the bnx2.o or bnx2.ko driver file has to be manually deleted from
the operating system. See Installing the Source RPM Package for the location of the installed driver.
UNINSTALLING BACS
RPM Package
Use the following command:
% rpm -e BACS