bpf, selftests: Add redirect_neigh selftest
authorDaniel Borkmann <daniel@iogearbox.net>
Wed, 30 Sep 2020 15:18:20 +0000 (17:18 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 30 Sep 2020 18:50:35 +0000 (11:50 -0700)
commiteef4a011f35d3aa657d4995c53ccb240d9eaea73
tree3115443403643360337a3687c68186f44dda004a
parentfaef26fa444dc44eeff70c9a63ebe7fef00b6c37
bpf, selftests: Add redirect_neigh selftest

Add a small test that exercises the new redirect_neigh() helper for the
IPv4 and IPv6 case.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/0fc7d9c5f9a6cc1c65b0d3be83b44b1ec9889f43.1601477936.git.daniel@iogearbox.net
tools/testing/selftests/bpf/progs/test_tc_neigh.c [new file with mode: 0644]
tools/testing/selftests/bpf/test_tc_neigh.sh [new file with mode: 0755]