From: Jakub Sitnicki <jakub@cloudflare.com>
To: Di Zhu <zhudi2@huawei.com>
Cc: andrii.nakryiko@gmail.com, ast@kernel.org, davem@davemloft.net,
daniel@iogearbox.net, andrii@kernel.org, kafai@fb.com,
songliubraving@fb.com, yhs@fb.com, john.fastabend@gmail.com,
kpsingh@kernel.org, bpf@vger.kernel.org,
linux-kernel@vger.kernel.org, luzhihao@huawei.com,
rose.chen@huawei.com
Subject: Re: [PATCH bpf-next v6 1/2] bpf: support BPF_PROG_QUERY for progs attached to sockmap
Date: Thu, 20 Jan 2022 19:49:34 +0100 [thread overview]
Message-ID: <87wniunsxt.fsf@cloudflare.com> (raw)
In-Reply-To: <20220119014005.1209-1-zhudi2@huawei.com>
On Wed, Jan 19, 2022 at 02:40 AM CET, Di Zhu wrote:
> Right now there is no way to query whether BPF programs are
> attached to a sockmap or not.
>
> we can use the standard interface in libbpf to query, such as:
> bpf_prog_query(mapFd, BPF_SK_SKB_STREAM_PARSER, 0, NULL, ...);
> the mapFd is the fd of sockmap.
>
> Signed-off-by: Di Zhu <zhudi2@huawei.com>
> Acked-by: Yonghong Song <yhs@fb.com>
> ---
Thanks for adding the annotation.
Reviewed-by: Jakub Sitnicki <jakub@cloudflare.com>
prev parent reply other threads:[~2022-01-20 18:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-19 1:40 [PATCH bpf-next v6 1/2] bpf: support BPF_PROG_QUERY for progs attached to sockmap Di Zhu
2022-01-19 1:40 ` [PATCH bpf-next v6 2/2] selftests: bpf: test " Di Zhu
2022-01-20 18:49 ` Jakub Sitnicki
2022-01-21 5:36 ` Alexei Starovoitov
2022-01-20 18:49 ` Jakub Sitnicki [this message]
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=87wniunsxt.fsf@cloudflare.com \
--to=jakub@cloudflare.com \
--cc=andrii.nakryiko@gmail.com \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=davem@davemloft.net \
--cc=john.fastabend@gmail.com \
--cc=kafai@fb.com \
--cc=kpsingh@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luzhihao@huawei.com \
--cc=rose.chen@huawei.com \
--cc=songliubraving@fb.com \
--cc=yhs@fb.com \
--cc=zhudi2@huawei.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 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).