bpf: selftests: test_tunnel: Setup fresh topology for each subtest
authorDaniel Xu <dxu@dxuuu.xyz>
Thu, 14 Dec 2023 22:49:03 +0000 (15:49 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 15 Dec 2023 01:12:49 +0000 (17:12 -0800)
commit77a7a8220f0d87c44425c0a12e0a72b14962535b
treed6d8802fab0be3c12762810ffc6e026f4dbe84b1
parent8f0ec8c681755f523cf842bfe350ea40609b83a9
bpf: selftests: test_tunnel: Setup fresh topology for each subtest

This helps with determinism b/c individual setup/teardown prevents
leaking state between different subtests.

Signed-off-by: Daniel Xu <dxu@dxuuu.xyz>
Link: https://lore.kernel.org/r/0fb59fa16fb58cca7def5239df606005a3e8dd0e.1702593901.git.dxu@dxuuu.xyz
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/test_tunnel.c