Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Alexis Lothoré (eBPF Foundation) and committed by
Martin KaFai Lau
c076fd5b ab01bfad

+2 -2
+2 -2
tools/testing/selftests/bpf/prog_tests/test_tc_tunnel.c
··· 666 666 ret = build_subtest_name(cfg, cfg->name, TEST_NAME_MAX_LEN); 667 667 if (ret < 0 || !test__start_subtest(cfg->name)) 668 668 continue; 669 - subtest_setup(skel, cfg); 670 - run_test(cfg); 669 + if (subtest_setup(skel, cfg) == 0) 670 + run_test(cfg); 671 671 subtest_cleanup(cfg); 672 672 } 673 673 cleanup();