]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/bpf: Optionally open a dedicated namespace to run test in it
authorBastien Curutchet (eBPF Foundation) <bastien.curutchet@bootlin.com>
Wed, 19 Feb 2025 14:53:01 +0000 (15:53 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 19 Feb 2025 17:46:02 +0000 (09:46 -0800)
commitc047e0e0e43560bf73ae47f7cfd5772f690b6d48
treed8b1560ca77bc1b77c1bda266cad23e0683c7a9a
parent4a06c5251ae341224e4010795a4db080857545fe
selftests/bpf: Optionally open a dedicated namespace to run test in it

Some tests are serialized to prevent interference with others.

Open a dedicated network namespace when a test name starts with 'ns_' to
allow more test parallelization. Use the test name as namespace name to
avoid conflict between namespaces.

Signed-off-by: Bastien Curutchet (eBPF Foundation) <bastien.curutchet@bootlin.com>
Link: https://lore.kernel.org/r/20250219-b4-tc_links-v2-2-14504db136b7@bootlin.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/test_progs.c