From: Stanislav Fomichev <sdf@fomichev.me>
To: Kui-Feng Lee <thinker.li@gmail.com>
Cc: bpf@vger.kernel.org, ast@kernel.org, martin.lau@linux.dev,
song@kernel.org, kernel-team@meta.com, andrii@kernel.org,
geliang@kernel.org, sinquersw@gmail.com, kuifeng@meta.com
Subject: Re: [PATCH bpf-next v7 3/6] selftests/bpf: netns_new() and netns_free() helpers.
Date: Mon, 12 Aug 2024 09:17:05 -0700 [thread overview]
Message-ID: <Zro1gdicFt9Nnev7@mini-arch> (raw)
In-Reply-To: <20240810023534.2458227-4-thinker.li@gmail.com>
On 08/09, Kui-Feng Lee wrote:
> netns_new()/netns_free() create/delete network namespaces. They support the
> option '-m' of test_progs to start/stop traffic monitor for the network
> namespace being created for matched tests.
>
> Signed-off-by: Kui-Feng Lee <thinker.li@gmail.com>
> ---
> tools/testing/selftests/bpf/network_helpers.c | 52 +++++++++++
> tools/testing/selftests/bpf/network_helpers.h | 2 +
> tools/testing/selftests/bpf/test_progs.c | 88 +++++++++++++++++++
> tools/testing/selftests/bpf/test_progs.h | 4 +
> 4 files changed, 146 insertions(+)
>
> diff --git a/tools/testing/selftests/bpf/network_helpers.c b/tools/testing/selftests/bpf/network_helpers.c
> index 47fc37aa13a5..c896ae365fe3 100644
> --- a/tools/testing/selftests/bpf/network_helpers.c
> +++ b/tools/testing/selftests/bpf/network_helpers.c
> @@ -446,6 +446,58 @@ char *ping_command(int family)
> return "ping";
> }
>
> +int remove_netns(const char *name);
Nit: if you end up with another respin, might just move remove_netns
implementation here instead of a forward decl.
next prev parent reply other threads:[~2024-08-12 16:17 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-10 2:35 [PATCH bpf-next v7 0/6] monitor network traffic for flaky test cases Kui-Feng Lee
2024-08-10 2:35 ` [PATCH bpf-next v7 1/6] selftests/bpf: Add traffic monitor functions Kui-Feng Lee
2024-08-10 2:35 ` [PATCH bpf-next v7 2/6] selftests/bpf: Add the traffic monitor option to test_progs Kui-Feng Lee
2024-08-10 2:35 ` [PATCH bpf-next v7 3/6] selftests/bpf: netns_new() and netns_free() helpers Kui-Feng Lee
2024-08-12 16:17 ` Stanislav Fomichev [this message]
2024-08-10 2:35 ` [PATCH bpf-next v7 4/6] selftests/bpf: Monitor traffic for tc_redirect Kui-Feng Lee
2024-08-10 2:35 ` [PATCH bpf-next v7 5/6] selftests/bpf: Monitor traffic for sockmap_listen Kui-Feng Lee
2024-08-10 2:35 ` [PATCH bpf-next v7 6/6] selftests/bpf: Monitor traffic for select_reuseport Kui-Feng Lee
2024-08-12 16:16 ` [PATCH bpf-next v7 0/6] monitor network traffic for flaky test cases Stanislav Fomichev
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=Zro1gdicFt9Nnev7@mini-arch \
--to=sdf@fomichev.me \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=geliang@kernel.org \
--cc=kernel-team@meta.com \
--cc=kuifeng@meta.com \
--cc=martin.lau@linux.dev \
--cc=sinquersw@gmail.com \
--cc=song@kernel.org \
--cc=thinker.li@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.