For Mellanox Drivers, you can use either the Inbox Drivers (whatever comes by default with the kernel you installed) or explicitly install OFED (which also packages Mellanox Drivers along with several other tools such as mst tools, perf tools, etc). If you want to install OFED you can give this a try.
-
Download latest LTS OFED ( MLNX_OFED_LINUX-24.10-3.2.5.0) from here (as per your OS Distro): Linux InfiniBand Drivers In your case I guess it would be Debian 12.1 or Debian 12.5 depending on which one you use. If you use something different that these, I am afraid we don’t have a OFED Package for that version.
-
Once you untar the package you can install OFED drivers for your custom kernel 6.1.37 as follows: ./mlnxofedinstall --force --with-kernel-support
Follow the instructions to complete the installation if it complains about any missing packages, etc
- Once the default OFED Drivers are installed you will need to patch the drivers and reload them. To do that extract the OFED Driver sources from the OFED tarball you downloaded under src directory
tar xzvf MLNX_OFED_SRC-24.10-3.2.5.0.tgz
cd MLNX_OFED_SRC-24.10-3.2.5.0/
cd SOURCES/
tar xzvf mlnx-ofed-kernel_24.10.OFED.24.10.3.2.5.1.orig.tar.gz
cd mlnx-ofed-kernel_24.10.OFED.24.10.3.2.5.1/
./configure --all
Copy patches shared on google drive (ipsec.tgz) and untar it. Apply patches
cat ipsec/0001-net-mlx5e-Add-helper-function-to-update-IPSec-defaul.patch | patch -p1
cat ipsec/0002-net-mlx5e-Change-the-destination-of-IPSec-RX-SA-miss.patch | patch -p1
cat ipsec/0003-net-mlx5e-Add-correct-match-to-check-IPSec-syndromes.patch | patch -p1
cat ipsec/0004-net-mlx5e-Move-IPSec-policy-check-after-decryption.patch | patch -p1
cat ipsec/0005-net-mlx5e-Skip-IPSec-RX-policy-check-for-crypto-offl.patch | patch -p1
cat ipsec/0006-net-mlx5e-Add-num_reserved_entries-param-for-ipsec_f.patch | patch -p1
cat ipsec/0007-net-mlx5e-Add-pass-flow-group-for-IPSec-RX-status-ta.patch | patch -p1
cat ipsec/0008-net-mlx5e-Support-RX-xfrm-state-selector-s-UPSPEC-fo.patch | patch -p1
Build updated drivers with patches
make -j8
make install_kernel
Run openibd restart to load the newly build drivers
/etc/init.d/openibd restart