Unverified Commit 22bae0fc authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!798 bpf: support BPF_PROG_QUERY for progs attached to sockmap

Merge Pull Request from: @kwb0523 
 
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. 
 
Link:https://gitee.com/openeuler/kernel/pulls/798

 

Reviewed-by: default avatarYue Haibing <yuehaibing@huawei.com>
Reviewed-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
parents 0c374437 05038388
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment