summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQiliang Yuan <odys.yuan@gmail.com>2026-10-08 22:02:39 +0800
committerDaniel Borkmann <daniel@iogearbox.net>2026-10-15 10:03:54 +0200
commit76c1913f311f32971dc2c3e106e285bd63c1804d (patch)
treecd0a87b2bf7a0186e889f5bd79067ebd28064432
parentf5bffe9f098fbf1b60e0242c7b96e06d1e4256d5 (diff)
downloadlinux-next-76c1913f311f32971dc2c3e106e285bd63c1804d.tar.gz
linux-next-76c1913f311f32971dc2c3e106e285bd63c1804d.zip
selftests/bpf: Use its own netns in flow_dissector_skb_less_direct_attach
test_flow_dissector_skb_less_direct_attach() and test_flow_dissector_skb_less_indirect_attach() each create a netns to run in, and test_progs may run the two at the same time. Both name their netns flow_dissector_skb_less_indirect_attach_ns. When the two tests overlap, one of them fails to create or open the netns, or loses it to the cleanup of the other one. Name the netns of the direct attach test after that test. Fixes: 2b044dd186f0 ("selftests/bpf: re-split main function into dedicated tests") Signed-off-by: Qiliang Yuan <odys.yuan@gmail.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Reviewed-by: Alexis Lothoré (eBPF Foundation) <alexis.lothore@bootlin.com> Link: https://lore.kernel.org/bpf/20261008-selftests-bpf-flow-dissector-netns-v1-1-5d9889aaad84@gmail.com
-rw-r--r--tools/testing/selftests/bpf/prog_tests/flow_dissector.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/prog_tests/flow_dissector.c b/tools/testing/selftests/bpf/prog_tests/flow_dissector.c
index fb4892681464..f6fefb14cda3 100644
--- a/tools/testing/selftests/bpf/prog_tests/flow_dissector.c
+++ b/tools/testing/selftests/bpf/prog_tests/flow_dissector.c
@@ -706,7 +706,7 @@ void test_flow_dissector_skb_less_direct_attach(void)
struct bpf_flow *skel;
struct netns_obj *ns;
- ns = netns_new("flow_dissector_skb_less_indirect_attach_ns", true);
+ ns = netns_new("flow_dissector_skb_less_direct_attach_ns", true);
if (!ASSERT_OK_PTR(ns, "create and open netns"))
return;