From: sdf@google.com
To: Martin KaFai Lau <martin.lau@linux.dev>
Cc: bpf@vger.kernel.org, "'Alexei Starovoitov '" <ast@kernel.org>,
"'Andrii Nakryiko '" <andrii@kernel.org>,
"'Daniel Borkmann '" <daniel@iogearbox.net>,
netdev@vger.kernel.org, kernel-team@meta.com
Subject: Re: [PATCH bpf-next 0/7] selftests/bpf: Remove unnecessary mount/umount dance
Date: Tue, 29 Nov 2022 11:00:01 -0800 [thread overview]
Message-ID: <Y4ZWsXKTKgm/e7P8@google.com> (raw)
In-Reply-To: <20221129070900.3142427-1-martin.lau@linux.dev>
On 11/28, Martin KaFai Lau wrote:
> From: Martin KaFai Lau <martin.lau@kernel.org>
> Some of the tests do mount/umount dance when switching netns.
> It is error-prone like
> https://lore.kernel.org/bpf/20221123200829.2226254-1-sdf@google.com/
> Another issue is, there are many left over after running some of the
> tests:
> #> mount | egrep sysfs | wc -l
> 19
> Instead of further debugging this dance, this set is to avoid the needs
> to
> do this remounting altogether. It will then allow those tests to be run
> in parallel again.
Looks great, thank you for taking care of this! Since I'm partly to
blame for the mess, took a quick look at the series:
Acked-by: Stanislav Fomichev <sdf@google.com>
> Martin KaFai Lau (7):
> selftests/bpf: Use if_nametoindex instead of reading the
> /sys/net/class/*/ifindex
> selftests/bpf: Avoid pinning bpf prog in the tc_redirect_dtime test
> selftests/bpf: Avoid pinning bpf prog in the tc_redirect_peer_l3 test
> selftests/bpf: Avoid pinning bpf prog in the netns_load_bpf() callers
> selftests/bpf: Remove the "/sys" mount and umount dance in
> {open,close}_netns
> selftests/bpf: Remove serial from tests using {open,close}_netns
> selftests/bpf: Avoid pinning prog when attaching to tc ingress in
> btf_skc_cls_ingress
> tools/testing/selftests/bpf/network_helpers.c | 51 +--
> .../bpf/prog_tests/btf_skc_cls_ingress.c | 25 +-
> .../selftests/bpf/prog_tests/empty_skb.c | 2 +-
> .../selftests/bpf/prog_tests/tc_redirect.c | 314 +++++++++---------
> .../selftests/bpf/prog_tests/test_tunnel.c | 2 +-
> .../bpf/prog_tests/xdp_do_redirect.c | 2 +-
> .../selftests/bpf/prog_tests/xdp_synproxy.c | 2 +-
> 7 files changed, 178 insertions(+), 220 deletions(-)
> --
> 2.30.2
next prev parent reply other threads:[~2022-11-29 19:01 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-29 7:08 [PATCH bpf-next 0/7] selftests/bpf: Remove unnecessary mount/umount dance Martin KaFai Lau
2022-11-29 7:08 ` [PATCH bpf-next 1/7] selftests/bpf: Use if_nametoindex instead of reading the /sys/net/class/*/ifindex Martin KaFai Lau
2022-11-29 7:08 ` [PATCH bpf-next 2/7] selftests/bpf: Avoid pinning bpf prog in the tc_redirect_dtime test Martin KaFai Lau
2022-11-29 7:08 ` [PATCH bpf-next 3/7] selftests/bpf: Avoid pinning bpf prog in the tc_redirect_peer_l3 test Martin KaFai Lau
2022-11-29 7:08 ` [PATCH bpf-next 4/7] selftests/bpf: Avoid pinning bpf prog in the netns_load_bpf() callers Martin KaFai Lau
2022-11-29 7:08 ` [PATCH bpf-next 5/7] selftests/bpf: Remove the "/sys" mount and umount dance in {open,close}_netns Martin KaFai Lau
2022-11-29 7:08 ` [PATCH bpf-next 6/7] selftests/bpf: Remove serial from tests using {open,close}_netns Martin KaFai Lau
2022-11-29 7:09 ` [PATCH bpf-next 7/7] selftests/bpf: Avoid pinning prog when attaching to tc ingress in btf_skc_cls_ingress Martin KaFai Lau
2022-11-29 19:00 ` sdf [this message]
2022-11-30 22:00 ` [PATCH bpf-next 0/7] selftests/bpf: Remove unnecessary mount/umount dance patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y4ZWsXKTKgm/e7P8@google.com \
--to=sdf@google.com \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=kernel-team@meta.com \
--cc=martin.lau@linux.dev \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).