Identifying and Removing Previously Installed Drivers

Onload User Guide (UG1586)

Document ID
UG1586
Release Date
2023-07-31
Revision
1.2 English

You can identify any previously installed sfc drivers using the ethtool -i command:

  • An ‘in-tree’ driver uses one of the following formats for its version number:
    • On older versions of Linux, the ‘in-tree’ driver outputs only Major and Minor revision numbers:
      # ethtool -i enp3s0f0
      driver: sfc
      version: 4.0
    • On recent versions of Linux, the ‘in-tree’ driver instead outputs the kernel version number:
      # ethtool -i enp3s0f0
      driver: sfc
      version: 4.18.0-372.9.1.el8.x86_64
  • All other sfc drivers display detailed version information:
    # ethtool -i enp3s0f0
    driver: sfc
    version: 4.15.12.1008
Note: For a list of the sfc driver included in each Onload release see Adapter Net Drivers.

To remove the previously installed driver (with Onload uninstalled or not yet installed):

# find /lib/modules/$(uname -r) -name 'sfc*.ko' | xargs rm –rf
# rmmod sfc
# update-initramfs -u -k <kernel version>

initramfs commands might differ on different Linux based OS, for example on CentOS 7 the following dracut command can be used:

# dracut –f