]> git.baikalelectronics.ru Git - kernel.git/commit
bpf, selftests: Add redirect_peer selftest
authorDaniel Borkmann <daniel@iogearbox.net>
Sat, 10 Oct 2020 23:40:06 +0000 (01:40 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 11 Oct 2020 17:21:04 +0000 (10:21 -0700)
commitfe1617597020c47830427cce0db6e7c81bb9cd03
treec6559345e3b01dbd0ab5a39bad0e73ec1bb5b263
parent94534af3b94434e3440a213f6935885744e57db8
bpf, selftests: Add redirect_peer selftest

Extend the test_tc_redirect test and add a small test that exercises the new
redirect_peer() helper for the IPv4 and IPv6 case.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20201010234006.7075-7-daniel@iogearbox.net
tools/testing/selftests/bpf/progs/test_tc_peer.c [new file with mode: 0644]
tools/testing/selftests/bpf/test_tc_redirect.sh