aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/test_cpp.cpp
diff options
context:
space:
mode:
authorMartin KaFai Lau <[email protected]>2022-11-29 07:08:57 +0000
committerDaniel Borkmann <[email protected]>2022-11-30 21:47:43 +0000
commit5dc42a7fc2866a56bc5616babace0a252458fe01 (patch)
tree51696d4d687327102548902a3c4aa471c7764a2f /tools/testing/selftests/bpf/test_cpp.cpp
parentselftests/bpf: Avoid pinning bpf prog in the tc_redirect_peer_l3 test (diff)
downloadkernel-5dc42a7fc2866a56bc5616babace0a252458fe01.tar.gz
kernel-5dc42a7fc2866a56bc5616babace0a252458fe01.zip
selftests/bpf: Avoid pinning bpf prog in the netns_load_bpf() callers
This patch removes the need to pin prog in the remaining tests in tc_redirect.c by directly using the bpf_tc_hook_create() and bpf_tc_attach(). The clsact qdisc will go away together with the test netns, so no need to do 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