]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0c14c7ffc6364d22e1c232691af9d0000f0a773d
tree3115443403643360337a3687c68186f44dda004a
parent5f5b3e9eff0afbdc1b98ff52ccbb2184d1ea8f2e
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]