diff options
author | Toke Høiland-Jørgensen <[email protected]> | 2020-10-20 23:25:57 +0200 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2020-10-22 01:30:00 +0200 |
commit | adfd272c4ccbe43d9761bb17dd8a4387d7815382 (patch) | |
tree | 10b89471c15288c7b3402937670ec95270ddf092 /tools/lib/bpf/bpf_helpers.h | |
parent | ba452c9e996d8a4c347b32805f91abb70de5de7e (diff) |
bpf, selftests: Extend test_tc_redirect to use modified bpf_redirect_neigh()
This updates the test_tc_neigh prog in selftests to use the new syntax of
bpf_redirect_neigh(). To exercise the helper both with and without the
optional parameter, add an additional test_tc_neigh_fib test program, which
does a bpf_fib_lookup() followed by a call to bpf_redirect_neigh() instead
of looking up the ifindex in a map.
Update the test_tc_redirect.sh script to run both versions of the test,
and while we're add it, fix it to work on systems that have a consolidated
dual-stack 'ping' binary instead of separate ping/ping6 versions.
Signed-off-by: Toke Høiland-Jørgensen <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/bpf_helpers.h')
0 files changed, 0 insertions, 0 deletions