selftests/bpf/test_xdp_redirect: use temp netns for testing
authorHangbin Liu <liuhangbin@gmail.com>
Tue, 25 Jan 2022 08:17:17 +0000 (16:17 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 28 Jan 2022 03:21:28 +0000 (19:21 -0800)
commit4ec25b49f4522d64473cd347a9d9e832b8be2a60
treed7a3581b5a4d92a0a27df5d37295a789135888f3
parent36d9970e52709bb4ba87bdf9a3c321da721e45f0
selftests/bpf/test_xdp_redirect: use temp netns for testing

Use temp netns instead of hard code name for testing in case the
netns already exists.

Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Acked-by: William Tu <u9012063@gmail.com>
Link: https://lore.kernel.org/r/20220125081717.1260849-8-liuhangbin@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/test_xdp_redirect.sh