Ubuntu16.04 安装 ConnectX-4 Lx 网卡驱动

0x00 下载并解压缩 Mellanox 网卡的驱动

在 Mellanox 官网下载当前操作系统对应版本驱动

首先,需要到 Mellanox 官网下载当前操作系统对应版本驱动。

链接:https://www.mellanox.com/products/infiniband-drivers/linux/mlnx_ofed

root@Super-Server:~# tar xvf MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64.tgz
root@Super-Server:~# ll
total 832296
drwx------ 26 root root      4096 8月  12 11:51 ./
drwxr-xr-x 24 root root      4096 7月  13 18:17 ../
drwxr-xr-x  5 root root      4096 7月   3 11:10 MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64/
-rw-r--r--  1 root root 330339588 8月  12 11:51 MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64.tgz
root@Super-Server:~# cd MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64/
root@Super-Server:~/MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64# ll
total 300
drwxr-xr-x  5 root root   4096 7月   3 11:10 ./
drwx------ 26 root root   4096 8月  12 11:51 ../
-rw-r--r--  1 root root      7 7月   3 11:09 .arch
-rwxr-xr-x  1 root root   3077 7月   3 11:09 common_installers.pl*
-rwxr-xr-x  1 root root  20656 7月   3 11:09 common.pl*
-rwxr-xr-x  1 root root  24396 7月   3 11:09 create_mlnx_ofed_installers.pl*
drwxr-xr-x  2 root root  12288 7月   3 11:11 DEBS/
-rw-r--r--  1 root root     12 7月   3 11:09 distro
drwxr-xr-x  6 root root   4096 7月   3 11:09 docs/
-rw-r--r--  1 root root    956 7月   3 11:09 LICENSE
-rw-r--r--  1 root root     12 7月   3 11:09 .mlnx
-rwxr-xr-x  1 root root  20727 7月   3 11:09 mlnx_add_kernel_support.sh*
-rwxr-xr-x  1 root root 165777 7月   3 11:09 mlnxofedinstall*
-rw-r--r--  1 root root   2764 7月   3 11:10 RPM-GPG-KEY-Mellanox
drwxr-xr-x  2 root root   4096 7月   3 11:09 src/
-rwxr-xr-x  1 root root  12200 7月   3 11:09 uninstall.sh*
root@Super-Server:~/MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64#

0x01 生成适配当前系统的驱动包

root@Super-Server:~/MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64# ./mlnx_add_kernel_support.sh -m /root/MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64 -v
Using provided distro: ubuntu16.04
Note: This program will create MLNX_OFED_LINUX TGZ for ubuntu16.04 under /tmp directory.
Do you want to continue?[y/N]:y
See log file /tmp/mlnx_iso.503_logs/mlnx_ofed_iso.503.log

Detected MLNX_OFED_LINUX-5.4-1.0.3.0
Running /bin/rm -rf /tmp/mlnx_iso.503/MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64-ext
Running cp -a /root/MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64 /tmp/mlnx_iso.503/MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64-ext
Checking if all needed packages are installed...
Running tar xzf /tmp/mlnx_iso.503/MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64-ext/src/MLNX_OFED_SRC-5.4-1.0.3.0.tgz
Building MLNX_OFED_LINUX DEBS . Please wait...
Running MLNX_OFED_SRC-5.4-1.0.3.0/install.pl --tmpdir /tmp/mlnx_iso.503_logs --kernel-only --kernel 4.15.0-142-generic --kernel-sources /lib/modules/4.15.0-142-generic/build/ --builddir /tmp/mlnx_iso.503 --without-dkms --build-only
Running install -m 0644 MLNX_OFED_SRC-5.4-1.0.3.0/DEBS/ubuntu16.04/x86_64/iser-modules_5.4-OFED.5.4.1.0.3.1.kver.4.15.0-142-generic_amd64.deb /tmp/mlnx_iso.503/MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64-ext/DEBS
Running install -m 0644 MLNX_OFED_SRC-5.4-1.0.3.0/DEBS/ubuntu16.04/x86_64/isert-modules_5.4-OFED.5.4.1.0.3.1.kver.4.15.0-142-generic_amd64.deb /tmp/mlnx_iso.503/MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64-ext/DEBS
Running install -m 0644 MLNX_OFED_SRC-5.4-1.0.3.0/DEBS/ubuntu16.04/x86_64/mlnx-nfsrdma-modules_5.4-OFED.5.4.1.0.3.1.kver.4.15.0-142-generic_amd64.deb /tmp/mlnx_iso.503/MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64-ext/DEBS
Running install -m 0644 MLNX_OFED_SRC-5.4-1.0.3.0/DEBS/ubuntu16.04/x86_64/mlnx-ofed-kernel-modules_5.4-OFED.5.4.1.0.3.1.kver.4.15.0-142-generic_amd64.deb /tmp/mlnx_iso.503/MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64-ext/DEBS
Running install -m 0644 MLNX_OFED_SRC-5.4-1.0.3.0/DEBS/ubuntu16.04/x86_64/kernel-mft-modules_4.17.0-106.kver.4.15.0-142-generic_all.deb /tmp/mlnx_iso.503/MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64-ext/DEBS
Running install -m 0644 MLNX_OFED_SRC-5.4-1.0.3.0/DEBS/ubuntu16.04/x86_64/mlnx-ofed-kernel-utils_5.4-OFED.5.4.1.0.3.1.kver.4.15.0-142-generic_amd64.deb /tmp/mlnx_iso.503/MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64-ext/DEBS
Running install -m 0644 MLNX_OFED_SRC-5.4-1.0.3.0/DEBS/ubuntu16.04/x86_64/mlnx-nvme-modules_5.4-OFED.5.4.1.0.3.1.kver.4.15.0-142-generic_amd64.deb /tmp/mlnx_iso.503/MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64-ext/DEBS
Running install -m 0644 MLNX_OFED_SRC-5.4-1.0.3.0/DEBS/ubuntu16.04/x86_64/knem_1.1.4.90mlnx1-OFED.5.1.2.5.0.1.kver.4.15.0-142-generic_amd64.deb /tmp/mlnx_iso.503/MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64-ext/DEBS
Running install -m 0644 MLNX_OFED_SRC-5.4-1.0.3.0/DEBS/ubuntu16.04/x86_64/srp-modules_5.4-OFED.5.4.1.0.3.1.kver.4.15.0-142-generic_amd64.deb /tmp/mlnx_iso.503/MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64-ext/DEBS
Running install -m 0644 MLNX_OFED_SRC-5.4-1.0.3.0/DEBS/ubuntu16.04/x86_64/knem-modules_1.1.4.90mlnx1-OFED.5.1.2.5.0.1.kver.4.15.0-142-generic_amd64.deb /tmp/mlnx_iso.503/MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64-ext/DEBS
Creating metadata-rpms for 4.15.0-142-generic ...
Running /usr/bin/perl /tmp/mlnx_iso.503/MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64-ext/create_mlnx_ofed_installers.pl --with-hpc --upstream-libs --tmpdir /tmp/mlnx_iso.503_logs --mofed /tmp/mlnx_iso.503/MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64-ext --rpms-tdir /tmp/mlnx_iso.503/MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64-ext/DEBS --output /tmp/mlnx_iso.503/MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64-ext --debian --kernel 4.15.0-142-generic --ignore-groups eth-only
Running apt-ftparchive packages . > Packages
Running bzip2 -kf Packages
Running apt-ftparchive release . > Release
Running apt-ftparchive packages . > Packages
Running bzip2 -kf Packages
Running apt-ftparchive release . > Release
WARNING: If you are going to configure this package as a repository, then please note
WARNING: that it is not signed, therefore, you need to set 'trusted=yes' in the sources.list file.
WARNING: Example: deb [trusted=yes] file:/<path to MLNX_OFED DEBS folder> ./
Running tar czf /tmp/MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64-ext.tgz MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64-ext
Created /tmp/MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64-ext.tgz
root@Super-Server:~/MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64# cd /tmp
root@Super-Server:/tmp# tar xvf MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64-ext.tgz
root@Super-Server:/tmp# ll
total 327568
drwxrwxrwt 13 root root     86016 8月  12 13:39 ./
drwxr-xr-x 24 root root      4096 7月  13 18:17 ../
drwxr-xr-x  5 root root      4096 7月   3 11:10 MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64-ext/
-rw-r--r--  1 root root 335246877 8月  12 12:15 MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64-ext.tgz
root@Super-Server:/tmp#

驱动包生成工具的使用帮助文档:

root@Super-Server:/tmp# cd /root/MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64/
root@Super-Server:~/MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64# ./mlnx_add_kernel_support.sh --help 

	Usage: mlnx_add_kernel_support.sh -m|--mlnx_ofed <path to MLNX_OFED/mlnx-en directory> [--make-iso|--make-tgz]

		[--make-iso]                    			Create MLNX_OFED/mlnx-en ISO image.
		[--make-tgz]                    			Create MLNX_OFED/mlnx-en tarball. (Default)
		[-t|--tmpdir <temp work dir>]                           Temp work directory (Default: /tmp)
		
		[-k | --kernel]	<kernel version>			Kernel version to use.
		[-s | --kernel-sources] <path to the kernel sources>	Path to kernel headers.
		[--ofed-sources] <path to tgz>				Path to OFED sources tgz package.
		[-v|--verbose]
		[-n|--name]						Name of the package to be created.
		[-y|--yes]						Answer "yes" to all questions
		[--force]						Force removing packages that depends on MLNX_OFED/mlnx-en
		[--skip-repo]						Do not create a repository from MLNX_OFED/mlnx-en rpms.
		[--without-<package>]					Do not build/install given package (or module).
		

root@Super-Server:~/MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64# cd /tmp
root@Super-Server:/tmp#

0x02 安装驱动

root@Super-Server:/tmp# cd MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64-ext/
root@Super-Server:/tmp/MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64-ext# ll
total 388
drwxr-xr-x  5 root root   4096 7月   3 11:10 ./
drwxrwxrwt 13 root root  86016 8月  12 14:09 ../
-rw-r--r--  1 root root      7 7月   3 11:09 .arch
-rwxr-xr-x  1 root root   3077 7月   3 11:09 common_installers.pl*
-rwxr-xr-x  1 root root  20656 7月   3 11:09 common.pl*
-rwxr-xr-x  1 root root  24396 7月   3 11:09 create_mlnx_ofed_installers.pl*
drwxr-xr-x  2 root root  16384 8月  12 12:15 DEBS/
-rw-r--r--  1 root root     12 7月   3 11:09 distro
drwxr-xr-x  6 root root   4096 7月   3 11:09 docs/
-rw-r--r--  1 root root    956 7月   3 11:09 LICENSE
-rw-r--r--  1 root root     12 7月   3 11:09 .mlnx
-rwxr-xr-x  1 root root  20727 7月   3 11:09 mlnx_add_kernel_support.sh*
-rwxr-xr-x  1 root root 165777 7月   3 11:09 mlnxofedinstall*
-rw-r--r--  1 root root   2764 7月   3 11:10 RPM-GPG-KEY-Mellanox
drwxr-xr-x  2 root root   4096 7月   3 11:09 src/
-rwxr-xr-x  1 root root  12200 7月   3 11:09 uninstall.sh*
root@Super-Server:/tmp/MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64-ext# ./mlnxofedinstall 
Logs dir: /tmp/MLNX_OFED_LINUX.6015.logs
General log file: /tmp/MLNX_OFED_LINUX.6015.logs/general.log

Below is the list of MLNX_OFED_LINUX packages that you have chosen
(some may have been added by the installer due to package dependencies):

ofed-scripts
mlnx-tools
mlnx-ofed-kernel-utils
mlnx-ofed-kernel-modules
iser-modules
isert-modules
srp-modules
rdma-core
libibverbs1
ibverbs-utils
ibverbs-providers
libibverbs-dev
libibverbs1-dbg
libibumad3
libibumad-dev
ibacm
librdmacm1
rdmacm-utils
librdmacm-dev
mstflint
ibdump
libibmad5
libibmad-dev
libopensm
opensm
opensm-doc
libopensm-devel
libibnetdisc5
infiniband-diags
mft
kernel-mft-modules
perftest
ibutils2
ar-mgr
dump-pr
ibsim
ibsim-doc
ucx
sharp
hcoll
openmpi
mpitests
knem-modules
libdapl2
dapl2-utils
libdapl-dev
dpcp
srptools
mlnx-ethtool
mlnx-iproute2
rshim
neohost-backend
neohost-sdk

This program will install the MLNX_OFED_LINUX package on your machine.
Note that all other Mellanox, OEM, OFED, RDMA or Distribution IB packages will be removed.
Those packages are removed due to conflicts with MLNX_OFED_LINUX, do not reinstall them.

Do you want to continue?[y/N]:y

Checking SW Requirements...
Removing old packages...
Installing new packages
Installing ofed-scripts-5.4...
Installing mlnx-tools-5.2.0...
Installing mlnx-ofed-kernel-utils-5.4...
Installing mlnx-ofed-kernel-modules-5.4...
Installing iser-modules-5.4...
Installing isert-modules-5.4...
Installing srp-modules-5.4...
Installing rdma-core-54mlnx1...
Installing libibverbs1-54mlnx1...
Installing ibverbs-utils-54mlnx1...
Installing ibverbs-providers-54mlnx1...
Installing libibverbs-dev-54mlnx1...
Installing libibverbs1-dbg-54mlnx1...
Installing libibumad3-54mlnx1...
Installing libibumad-dev-54mlnx1...
Installing ibacm-54mlnx1...
Installing librdmacm1-54mlnx1...
Installing rdmacm-utils-54mlnx1...
Installing librdmacm-dev-54mlnx1...
Installing mstflint-4.16.0...
Installing ibdump-6.0.0...
Installing libibmad5-54mlnx1...
Installing libibmad-dev-54mlnx1...
Installing libopensm-5.9.0.MLNX20210617.c9f2ade...
Installing opensm-5.9.0.MLNX20210617.c9f2ade...
Installing opensm-doc-5.9.0.MLNX20210617.c9f2ade...
Installing libopensm-devel-5.9.0.MLNX20210617.c9f2ade...
Installing libibnetdisc5-54mlnx1...
Installing infiniband-diags-54mlnx1...
Installing mft-4.17.0...
Installing kernel-mft-modules-4.17.0...
Installing perftest-4.5...
Installing ibutils2-2.1.1...
Installing ar-mgr-1.0...
Installing dump-pr-1.0...
Installing ibsim-0.10...
Installing ibsim-doc-0.10...
Installing ucx-1.11.0...
Installing sharp-2.5.0.MLNX20210613.83fe753...
Installing hcoll-4.7.3199...
Installing openmpi-4.1.2a1...
Installing mpitests-3.2.20...
Installing knem-modules-1.1.4.90mlnx1...
Installing libdapl2-2.1.10.1.mlnx...
Installing dapl2-utils-2.1.10.1.mlnx...
Installing libdapl-dev-2.1.10.1.mlnx...
Installing dpcp-1.1.12...
Installing srptools-54mlnx1...
Installing mlnx-ethtool-5.10...
Installing mlnx-iproute2-5.11.0...
Installing rshim-2.0.6...
Installing neohost-backend-1.5.0...
Installing neohost-sdk-1.5.0...
Selecting previously unselected package mlnx-fw-updater.
(Reading database ... 240265 files and directories currently installed.)
Preparing to unpack .../mlnx-fw-updater_5.4-1.0.3.0_amd64.deb ...
Unpacking mlnx-fw-updater (5.4-1.0.3.0) ...
Setting up mlnx-fw-updater (5.4-1.0.3.0) ...

Added 'RUN_FW_UPDATER_ONBOOT=no to /etc/infiniband/openib.conf

Initializing...
Attempting to perform Firmware update...
Querying Mellanox devices firmware ...

Device #1:
----------

  Device Type:      ConnectX4LX
  Part Number:      MCX4121A-ACA_Ax
  Description:      ConnectX-4 Lx EN network interface card; 25GbE dual-port SFP28; PCIe3.0 x8; ROHS R6
  PSID:             MT_2420110034
  PCI Device Name:  01:00.0
  Base MAC:         b8599fc773ca
  Versions:         Current        Available     
     FW             14.28.2006     14.31.1014    
     PXE            3.6.0102       3.6.0403      
     UEFI           14.21.0017     14.24.0013    

  Status:           Update required

---------
Found 1 device(s) requiring firmware update...

Device #1: Updating FW ...     
Querying Mellanox devices firmware ...

Device #1:
----------

  Device Type:      ConnectX4LX
  Part Number:      MCX4121A-ACA_Ax
  Description:      ConnectX-4 Lx EN network interface card; 25GbE dual-port SFP28; PCIe3.0 x8; ROHS R6
  PSID:             MT_2420110034
  PCI Device Name:  09:00.0
  Base MAC:         b8599f3b57b6
  Versions:         Current        Available     
     FW             14.31.1014     14.31.1014    
     PXE            3.6.0403       3.6.0403      
     UEFI           14.24.0013     14.24.0013    

  Status:           Up to date


Log File: /tmp/xsQgq1zxi4
-W- DMA burning is not supported due to BME is unset (Bus Master Enable).
FSMST_INITIALIZE -   OK          
Writing Boot image component -   OK                                                                                                                                Done

Restart needed for updates to take effect.
Log File: /tmp/7vKME08X_v
Real log file: /tmp/MLNX_OFED_LINUX.6015.logs/fw_update.log
Device (01:00.0):
	01:00.0 Ethernet controller: Mellanox Technologies MT27710 Family [ConnectX-4 Lx]
	Link Width: x8
	PCI Link Speed: 8GT/s

Device (01:00.1):
	01:00.1 Ethernet controller: Mellanox Technologies MT27710 Family [ConnectX-4 Lx]
	Link Width: x8
	PCI Link Speed: 8GT/s

Device (09:00.0):
	09:00.0 Ethernet controller: Mellanox Technologies MT27710 Family [ConnectX-4 Lx]
	Link Width: x4 ( WARNING - device supports x8 )
	PCI Link Speed: 5GT/s

Device (09:00.1):
	09:00.1 Ethernet controller: Mellanox Technologies MT27710 Family [ConnectX-4 Lx]
	Link Width: x4 ( WARNING - device supports x8 )
	PCI Link Speed: 5GT/s

Installation passed successfully
To load the new driver, run:
/etc/init.d/openibd restart
root@Super-Server:/tmp/MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64-ext# /etc/init.d/openibd restart
Unloading HCA driver:                                      [  OK  ]
Loading HCA driver and Access Layer:                       [  OK  ]
root@Super-Server:/tmp/MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64-ext#

0x03 结果验证

root@Super-Server:/tmp/MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64-ext# /etc/init.d/openibd status

  HCA driver loaded

Configured Mellanox EN devices:
enp9s0f0
enp9s0f1
ens11f0
ens11f1

Currently active Mellanox devices:





The following OFED modules are loaded:

  rdma_ucm
  rdma_cm
  ib_ipoib
  mlx5_core
  mlx5_ib
  ib_uverbs
  ib_umad
  ib_cm
  ib_core
  mlxfw

root@Super-Server:/tmp/MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64-ext# lspci | grep -i ethernet
01:00.0 Ethernet controller: Mellanox Technologies MT27710 Family [ConnectX-4 Lx]
01:00.1 Ethernet controller: Mellanox Technologies MT27710 Family [ConnectX-4 Lx]
02:00.0 Ethernet controller: Cavium, Inc. Device 9702 (rev 03)
02:00.1 Ethernet controller: Cavium, Inc. Device 9702 (rev 03)
03:00.0 Ethernet controller: Intel Corporation Ethernet Controller X710 for 10GbE SFP+ (rev 02)
03:00.1 Ethernet controller: Intel Corporation Ethernet Controller X710 for 10GbE SFP+ (rev 02)
03:00.2 Ethernet controller: Intel Corporation Ethernet Controller X710 for 10GbE SFP+ (rev 02)
03:00.3 Ethernet controller: Intel Corporation Ethernet Controller X710 for 10GbE SFP+ (rev 02)
07:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev 03)
08:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev 03)
09:00.0 Ethernet controller: Mellanox Technologies MT27710 Family [ConnectX-4 Lx]
09:00.1 Ethernet controller: Mellanox Technologies MT27710 Family [ConnectX-4 Lx]
root@Super-Server:/tmp/MLNX_OFED_LINUX-5.4-1.0.3.0-ubuntu16.04-x86_64-ext# cd
root@Super-Server:~# ethtool enp9s0f0
Settings for enp9s0f0:
	Supported ports: [ FIBRE ]
	Supported link modes:   1000baseKX/Full 
	                        10000baseKR/Full 
	                        25000baseCR/Full 
	                        25000baseKR/Full 
	                        25000baseSR/Full 
	Supported pause frame use: Symmetric
	Supports auto-negotiation: Yes
	Supported FEC modes: None BaseR RS
	Advertised link modes:  1000baseKX/Full 
	                        10000baseKR/Full 
	                        25000baseCR/Full 
	                        25000baseKR/Full 
	                        25000baseSR/Full 
	Advertised pause frame use: Symmetric
	Advertised auto-negotiation: Yes
	Advertised FEC modes: None
	Speed: 25000Mb/s
	Duplex: Full
	Port: FIBRE
	PHYAD: 0
	Transceiver: internal
	Auto-negotiation: on
	Supports Wake-on: d
	Wake-on: d
	Current message level: 0x00000004 (4)
			       link
	Link detected: yes
root@Super-Server:~# ethtool enp9s0f1
Settings for enp9s0f1:
	Supported ports: [ FIBRE ]
	Supported link modes:   1000baseKX/Full 
	                        10000baseKR/Full 
	                        25000baseCR/Full 
	                        25000baseKR/Full 
	                        25000baseSR/Full 
	Supported pause frame use: Symmetric
	Supports auto-negotiation: Yes
	Supported FEC modes: None BaseR RS
	Advertised link modes:  1000baseKX/Full 
	                        10000baseKR/Full 
	                        25000baseCR/Full 
	                        25000baseKR/Full 
	                        25000baseSR/Full 
	Advertised pause frame use: Symmetric
	Advertised auto-negotiation: Yes
	Advertised FEC modes: RS
	Link partner advertised link modes:  Not reported
	Link partner advertised pause frame use: No
	Link partner advertised auto-negotiation: Yes
	Link partner advertised FEC modes: Not reported
	Speed: 25000Mb/s
	Duplex: Full
	Port: FIBRE
	PHYAD: 0
	Transceiver: internal
	Auto-negotiation: on
	Supports Wake-on: d
	Wake-on: d
	Current message level: 0x00000004 (4)
			       link
	Link detected: yes
root@Super-Server:~#

Ubuntu16.04 安装 ConnectX-4 Lx 网卡驱动
https://srezone.open-space.cc/article/104964077.html
作者
Richard Li
发布于
2021年8月16日
许可协议