aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/test_cpp.cpp
diff options
context:
space:
mode:
authorMartin KaFai Lau <[email protected]>2022-11-29 07:09:00 +0000
committerDaniel Borkmann <[email protected]>2022-11-30 21:47:43 +0000
commit443f216448ab5ddd1b4d08ad6c9b69628ac25adf (patch)
tree15d8eb3b29571d530d412ed163bbe1083790d2df /tools/testing/selftests/bpf/test_cpp.cpp
parentselftests/bpf: Remove serial from tests using {open,close}_netns (diff)
downloadkernel-443f216448ab5ddd1b4d08ad6c9b69628ac25adf.tar.gz
kernel-443f216448ab5ddd1b4d08ad6c9b69628ac25adf.zip
selftests/bpf: Avoid pinning prog when attaching to tc ingress in btf_skc_cls_ingress
This patch removes the need to pin prog when attaching to tc ingress in the btf_skc_cls_ingress test. Instead, directly use the bpf_tc_hook_create() and bpf_tc_attach(). The qdisc clsact will go away together with the netns, so no need to bpf_tc_hook_destroy(). Signed-off-by: Martin KaFai Lau <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Stanislav Fomichev <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/test_cpp.cpp')
0 files changed, 0 insertions, 0 deletions