diff options
author | Martin KaFai Lau <[email protected]> | 2022-11-28 23:08:56 -0800 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2022-11-30 22:47:42 +0100 |
commit | f1b73577bb3c5b23872fde2907386635ea726d6d (patch) | |
tree | a67b938b2968515c7b12c84e5f399545745df295 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | 57d0863f1d2812da543ef49172f60d6aa14bedcf (diff) |
selftests/bpf: Avoid pinning bpf prog in the tc_redirect_peer_l3 test
This patch removes the need to pin prog in the tc_redirect_peer_l3
test 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/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions