diff options
author | Christian Breunig <christian@breunig.cc> | 2024-03-22 07:50:58 +0000 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2024-03-22 08:54:25 +0100 |
commit | ea7d59a4bf64a854be04ccf7566e1cf95d4e09a8 (patch) | |
tree | 4e0ae450526354a6c0d0b8827d87e20851180008 /packages/linux-kernel/build-intel-ixgbe.sh | |
parent | 4e9a92905147de844ff9f9f3caaed913bab3b9fe (diff) | |
download | vyos-build-ea7d59a4bf64a854be04ccf7566e1cf95d4e09a8.tar.gz vyos-build-ea7d59a4bf64a854be04ccf7566e1cf95d4e09a8.zip |
ixgbe: T6155: always enable allow_unsupported_sfp for all NICs by default
In-tree vs. Out-Of-Tree drivers differ in the way how unsupported transceivers
are defined (uint vs array of int) for the Kernel module parameters.
This results in:
kernel: ixgbe 0000:5e:00.0: failed to initialize because an unsupported SFP+ module type was detected.
kernel: ixgbe 0000:5e:00.0: Reload the driver after installing a supported module.
kernel: ixgbe 0000:5e:00.0: removed PHC on eth6
This patch always enables unsupported SFP+ modules as wo do anyway from
the userspace but only for the first port.
Diffstat (limited to 'packages/linux-kernel/build-intel-ixgbe.sh')
-rwxr-xr-x | packages/linux-kernel/build-intel-ixgbe.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/linux-kernel/build-intel-ixgbe.sh b/packages/linux-kernel/build-intel-ixgbe.sh index 4f6d974b..36e403ad 100755 --- a/packages/linux-kernel/build-intel-ixgbe.sh +++ b/packages/linux-kernel/build-intel-ixgbe.sh @@ -57,6 +57,10 @@ echo "I: remove pci_enable_pcie_error_reporting() code no longer present in Kern sed -i '/.*pci_disable_pcie_error_reporting(pdev);/d' ixgbe_main.c sed -i '/.*pci_enable_pcie_error_reporting(pdev);/d' ixgbe_main.c +# See https://vyos.dev/T6155 +echo "I: always enable allow_unsupported_sfp for all NICs by default" +patch -l -p1 < ../../patches/ixgbe/allow_unsupported_sfp.patch + echo "I: Compile Kernel module for Intel ${DRIVER_NAME} driver" make KSRC=${KERNEL_DIR} INSTALL_MOD_PATH=${DEBIAN_DIR} INSTALL_FW_PATH=${DEBIAN_DIR} -j $(getconf _NPROCESSORS_ONLN) install |