aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/bpf/prog_tests
diff options
context:
space:
mode:
authorHangbin Liu <liuhangbin@gmail.com>2022-01-25 16:17:11 +0800
committerAlexei Starovoitov <ast@kernel.org>2022-01-27 19:21:27 -0800
commitcec74489a8dee93053340ec88ea938ff4008c3c0 (patch)
tree7234c63aeda6dcc236b6733863ddc87a027e4847 /tools/testing/selftests/bpf/prog_tests
parentbpf, x86: Remove unnecessary handling of BPF_SUB atomic op (diff)
downloadwireguard-linux-cec74489a8dee93053340ec88ea938ff4008c3c0.tar.xz
wireguard-linux-cec74489a8dee93053340ec88ea938ff4008c3c0.zip
selftests/bpf/test_xdp_redirect_multi: use temp netns for testing
Use temp netns instead of hard code name for testing in case the netns already exists. Remove the hard code interface index when creating the veth interfaces. Because when the system loads some virtual interface modules, e.g. tunnels. the ifindex of 2 will be used and the cmd will fail. As the netns has not created if checking environment failed. Trap the clean up function after checking env. Fixes: 8955c1a32987 ("selftests/bpf/xdp_redirect_multi: Limit the tests in netns") Signed-off-by: Hangbin Liu <liuhangbin@gmail.com> Acked-by: William Tu <u9012063@gmail.com> Link: https://lore.kernel.org/r/20220125081717.1260849-2-liuhangbin@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests')
0 files changed, 0 insertions, 0 deletions