]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests/bpf: Skip tc_tunnel subtest if its setup fails
authorAlexis Lothoré (eBPF Foundation) <alexis.lothore@bootlin.com>
Fri, 31 Oct 2025 09:01:41 +0000 (10:01 +0100)
committerMartin KaFai Lau <martin.lau@kernel.org>
Fri, 31 Oct 2025 22:00:30 +0000 (15:00 -0700)
commitc076fd5bb4d70b1f9de7aaf6cc6165891f190ba9
treedb433da7aa958836b5c2902d372e34b09ceaf85f
parentab01bfad61b093e68d17cb189172e5534f23ae05
selftests/bpf: Skip tc_tunnel subtest if its setup fails

A subtest setup can fail in a wide variety of ways, so make sure not to
run it if an issue occurs during its setup. The return value is
already representing whether the setup succeeds or fails, it is just
about wiring it.

Signed-off-by: Alexis Lothoré (eBPF Foundation) <alexis.lothore@bootlin.com>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://patch.msgid.link/20251031-tc_tunnel_improv-v1-1-0ffe44d27eda@bootlin.com
tools/testing/selftests/bpf/prog_tests/test_tc_tunnel.c