summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
diff options
context:
space:
mode:
authorDi Zhu <zhudi2@huawei.com>2022-01-19 09:40:04 +0800
committerAlexei Starovoitov <ast@kernel.org>2022-01-20 21:30:58 -0800
commit748cd5729ac7421091316e32dcdffb0578563880 (patch)
treee5ae498f48bb6051c170f8636d3568abefbfb857 /tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
parent3f712d4691fc4b5249218ba045ac24f615705df9 (diff)
downloadlinux-748cd5729ac7421091316e32dcdffb0578563880.tar.gz
linux-748cd5729ac7421091316e32dcdffb0578563880.tar.bz2
linux-748cd5729ac7421091316e32dcdffb0578563880.zip
bpf: support BPF_PROG_QUERY for progs attached to sockmap
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> Reviewed-by: Jakub Sitnicki <jakub@cloudflare.com> Link: https://lore.kernel.org/r/20220119014005.1209-1-zhudi2@huawei.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/sockmap_basic.c')
0 files changed, 0 insertions, 0 deletions