]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests/net: use destination options instead of hop-by-hop
authorAnubhav Singh <anubhavsinggh@google.com>
Thu, 30 Oct 2025 06:04:36 +0000 (06:04 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 1 Nov 2025 00:33:17 +0000 (17:33 -0700)
commitf8e8486702abb05b8c734093aab1606af0eac068
tree2d8acf4a9b153e8d8513269ff926e4ff3efafeaa
parent02d064de05b1fcca769391fa82d205bed8bb9bf0
selftests/net: use destination options instead of hop-by-hop

The GRO self-test, gro.c, currently constructs IPv6 packets containing a
Hop-by-Hop Options header (IPPROTO_HOPOPTS) to ensure the GRO path
correctly handles IPv6 extension headers.

However, network elements may be configured to drop packets with the
Hop-by-Hop Options header (HBH). This causes the self-test to fail
in environments where such network elements are present.

To improve the robustness and reliability of this test in diverse
network environments, switch from using IPPROTO_HOPOPTS to
IPPROTO_DSTOPTS (Destination Options).

The Destination Options header is less likely to be dropped by
intermediate routers and still serves the core purpose of the test:
validating GRO's handling of an IPv6 extension header. This change
ensures the test can execute successfully without being incorrectly
failed by network policies outside the kernel's control.

Fixes: 7d1575014a63 ("selftests/net: GRO coalesce test")
Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Anubhav Singh <anubhavsinggh@google.com>
Link: https://patch.msgid.link/20251030060436.1556664-1-anubhavsinggh@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/gro.c