ethtool: work-around ETHTOOL_GRSSH/ETHTOOL_SRSSH ABI breakage
authorDaniel Golle <daniel@makrotopia.org>
Wed, 12 Feb 2025 04:21:22 +0000 (04:21 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 24 Feb 2025 05:07:01 +0000 (05:07 +0000)
commit3a7467ffde413677de5465dde78a62dfa8d6774f
tree2e3bf8fe6b2a33772f73124ebf3ba1dac413e16d
parentda2cc98458f46745de95e88b6066620fbd02b190
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>
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]