]> git.ipfire.org Git - thirdparty/openwrt.git/commit
ethtool: work-around ETHTOOL_GRSSH/ETHTOOL_SRSSH ABI breakage 18096/head
authorDaniel Golle <daniel@makrotopia.org>
Wed, 12 Feb 2025 04:21:22 +0000 (04:21 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Fri, 28 Feb 2025 13:20:22 +0000 (13:20 +0000)
commite664fe6a21a7670382bebab0c93dced8e81fb8ed
treef6e6b2c9166f569e38e391b315e5e27af6067b19
parentc9b97c0b4de7b63334042960a07eb91decbcb7e6
ethtool: work-around ETHTOOL_GRSSH/ETHTOOL_SRSSH ABI breakage

ethtool since version 6.9 introduced support for getting/setting RSS
input transformation supported in Linux since version 6.8.

The now changed kernel ioctl ABI, however, cannot be detected from
userland, and ethtool since version 6.9 simply assumes that a previously
reserved field is now used to set the input transformation.
Unfortunately the default value RXH_XFRM_NO_CHANGE (0xff) used by ethtool
userland creates an incompatibility with older kernels which cannot be
resolved easily without introducing even more ABI breakage.

Work-around the issue and fix support for --set-rxfh and --set-rxfh-indir
ethtool userland tool commands by making the support for input_xfrm
conditional on compile time, and keep it disabled for Linux 6.6.

Fixes: 8c2dcd1518 ("ethtool: update to 6.10")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Tested-by: Stijn Segers <foss@volatilesystems.org>
(cherry picked from commit 3a7467ffde413677de5465dde78a62dfa8d6774f)
package/network/utils/ethtool/Makefile
package/network/utils/ethtool/patches/0001-ethtool-make-building-for-RSS-input-xfrm-optional.patch [new file with mode: 0644]