* [PATCH bpf-next] selftests/bpf: Use its own netns in flow_dissector_skb_less_direct_attach
@ 2026-10-08 14:02 Qiliang Yuan
2026-10-14 8:05 ` Alexis Lothoré
2026-10-15 8:10 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Qiliang Yuan @ 2026-10-08 14:02 UTC (permalink / raw)
To: Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko,
Eduard Zingerman, Kumar Kartikeya Dwivedi, Martin KaFai Lau,
Song Liu, Yonghong Song, Jiri Olsa, Emil Tsalapatis,
Ihor Solodrai, Shuah Khan, Stanislav Fomichev,
Alexis Lothoré (eBPF Foundation)
Cc: bpf, linux-kselftest, linux-kernel, Qiliang Yuan
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>
---
tools/testing/selftests/bpf/prog_tests/flow_dissector.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/bpf/prog_tests/flow_dissector.c b/tools/testing/selftests/bpf/prog_tests/flow_dissector.c
index fb48926814647..f6fefb14cda3c 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;
---
base-commit: e1d84a37cba984388988d2f1ddc84561413f0db2
change-id: 20261008-selftests-bpf-flow-dissector-netns-c347cf31e5f1
Best regards,
--
Qiliang Yuan <odys.yuan@gmail.com>
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH bpf-next] selftests/bpf: Use its own netns in flow_dissector_skb_less_direct_attach
2026-10-08 14:02 [PATCH bpf-next] selftests/bpf: Use its own netns in flow_dissector_skb_less_direct_attach Qiliang Yuan
@ 2026-10-14 8:05 ` Alexis Lothoré
2026-10-15 8:10 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Alexis Lothoré @ 2026-10-14 8:05 UTC (permalink / raw)
To: Qiliang Yuan, Alexei Starovoitov, Daniel Borkmann,
Andrii Nakryiko, Eduard Zingerman, Kumar Kartikeya Dwivedi,
Martin KaFai Lau, Song Liu, Yonghong Song, Jiri Olsa,
Emil Tsalapatis, Ihor Solodrai, Shuah Khan, Stanislav Fomichev,
Alexis Lothoré (eBPF Foundation)
Cc: bpf, linux-kselftest, linux-kernel
On Thu Oct 8, 2026 at 4:02 PM CEST, Qiliang Yuan wrote:
> 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>
Indeed, faulty copy-paste when the original test has been split, thanks
for the fix.
Reviewed-by: Alexis Lothoré (eBPF Foundation) <alexis.lothore@bootlin.com>
> ---
> tools/testing/selftests/bpf/prog_tests/flow_dissector.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/testing/selftests/bpf/prog_tests/flow_dissector.c b/tools/testing/selftests/bpf/prog_tests/flow_dissector.c
> index fb48926814647..f6fefb14cda3c 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;
>
>
> ---
> base-commit: e1d84a37cba984388988d2f1ddc84561413f0db2
> change-id: 20261008-selftests-bpf-flow-dissector-netns-c347cf31e5f1
>
> Best regards,
--
Alexis Lothoré, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH bpf-next] selftests/bpf: Use its own netns in flow_dissector_skb_less_direct_attach
2026-10-08 14:02 [PATCH bpf-next] selftests/bpf: Use its own netns in flow_dissector_skb_less_direct_attach Qiliang Yuan
2026-10-14 8:05 ` Alexis Lothoré
@ 2026-10-15 8:10 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-10-15 8:10 UTC (permalink / raw)
To: Qiliang Yuan
Cc: ast, daniel, andrii, eddyz87, memxor, martin.lau, song,
yonghong.song, jolsa, emil, ihor.solodrai, shuah, sdf,
alexis.lothore, bpf, linux-kselftest, linux-kernel
Hello:
This patch was applied to bpf/bpf-next.git (master)
by Daniel Borkmann <daniel@iogearbox.net>:
On Thu, 08 Oct 2026 22:02:39 +0800 you wrote:
> 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.
>
> [...]
Here is the summary with links:
- [bpf-next] selftests/bpf: Use its own netns in flow_dissector_skb_less_direct_attach
https://git.kernel.org/bpf/bpf-next/c/76c1913f311f
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-10-15 8:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-08 14:02 [PATCH bpf-next] selftests/bpf: Use its own netns in flow_dissector_skb_less_direct_attach Qiliang Yuan
2026-10-14 8:05 ` Alexis Lothoré
2026-10-15 8:10 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®