]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/bpf: remove unused toggle in tc_tunnel
authorAlexis Lothoré (eBPF Foundation) <alexis.lothore@bootlin.com>
Fri, 3 Apr 2026 07:52:06 +0000 (09:52 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 6 Apr 2026 01:45:48 +0000 (18:45 -0700)
commitf254fb58dde38addca8f0767f92559120cfe54cf
tree5923a0b5770f52d95c6f59a0179a3e6e4a526236
parentc6095cb9684e278a59cb5a25deff6bfef9aecf27
selftests/bpf: remove unused toggle in tc_tunnel

tc_tunnel test is based on a send_and_test_data function which takes a
subtest configuration, and a boolean indicating whether the connection
is supposed to fail or not. This boolean is systematically passed to
true, and is a remnant from the first (not integrated) attempts to
convert tc_tunnel to test_progs: those versions validated for
example that a connection properly fails when only one side of the
connection has tunneling enabled. This specific testing has not been
integrated because it involved large timeouts which increased quite a
lot the test duration, for little added value.

Remove the unused boolean from send_and_test_data to simplify the
generic part of subtests.

Signed-off-by: Alexis Lothoré (eBPF Foundation) <alexis.lothore@bootlin.com>
Acked-by: Paul Chaignon <paul.chaignon@gmail.com>
Link: https://lore.kernel.org/r/20260403-tc_tunnel_cleanup-v1-1-4f1bb113d3ab@bootlin.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/test_tc_tunnel.c