[SRU][J][PATCH 1/2] UBUNTU: SAUCE: selftests: net: veth: use short form gro for ethtool -K
Massimiliano Pellizzer
massimiliano.pellizzer at canonical.com
Wed Dec 17 13:11:28 UTC 2025
BugLink: https://bugs.launchpad.net/bugs/2136734
The veth.sh selftest fails on systems with older ethtool versions
(e.g., ethtool 5.4 on Focal) because the ethtool -K command does not
recognize 'generic-receive-offload' as a valid feature name.
This causes test failures like:
ethtool: bad command line argument(s)
For more information run ethtool -h
- gro flag with GRO on fail - expected on found off
Fix by using the short feature name 'gro'
which works across all ethtool versions.
Signed-off-by: Massimiliano Pellizzer <massimiliano.pellizzer at canonical.com>
---
tools/testing/selftests/net/veth.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/testing/selftests/net/veth.sh b/tools/testing/selftests/net/veth.sh
index 86f65ddbe221c..e670d63dd38ca 100755
--- a/tools/testing/selftests/net/veth.sh
+++ b/tools/testing/selftests/net/veth.sh
@@ -248,7 +248,7 @@ cleanup
create_ns
ip -n $NS_DST link set dev veth$DST up
ip -n $NS_DST link set dev veth$DST xdp object ../bpf/xdp_dummy.o section xdp
-ip netns exec $NS_DST ethtool -K veth$DST generic-receive-offload on
+ip netns exec $NS_DST ethtool -K veth$DST gro on
chk_gro_flag "gro vs xdp while down - gro flag on" $DST on
ip -n $NS_DST link set dev veth$DST down
chk_gro_flag " - after down" $DST on
@@ -333,7 +333,7 @@ chk_tso_flag " - tso flag" $SRC off
chk_tso_flag " - peer tso flag" $DST on
ip netns exec $NS_DST ethtool -K veth$DST rx-udp-gro-forwarding on
chk_gro " - no aggregation" 10
-ip netns exec $NS_DST ethtool -K veth$DST generic-receive-offload on
+ip netns exec $NS_DST ethtool -K veth$DST gro on
chk_gro_flag " - gro flag with GRO on" $DST on
chk_gro " - aggregation" 1
--
2.51.0
More information about the kernel-team
mailing list