Skip to content

Commit 9205d13

Browse files
committed
xdp-bench/tests: Don't remove interface until the test ends
The previous commit mistakenly moved the interface teardown to before the optional tests were executed, causing those tests to fail. Signed-off-by: Toke Høiland-Jørgensen <[email protected]>
1 parent a020ee9 commit 9205d13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xdp-bench/tests/test-xdp-bench.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,13 @@ test_redirect_cpu()
8383
check_run $XDP_BENCH redirect-cpu btest0 -c 0 -p l4-proto -vv
8484
check_run $XDP_BENCH redirect-cpu btest0 -c 0 -p l4-filter -vv
8585
check_run $XDP_BENCH redirect-cpu btest0 -c 0 -p l4-hash -vv
86-
ip link del dev btest0
8786

8887
if is_progmap_supported; then
8988
check_run $XDP_BENCH redirect-cpu btest0 -c 0 -r drop -vv
9089
check_run $XDP_BENCH redirect-cpu btest0 -c 0 -r pass -vv
9190
check_run $XDP_BENCH redirect-cpu btest0 -c 0 -r redirect -D btest1 -vv
9291
fi
92+
ip link del dev btest0
9393
}
9494

9595
test_redirect_map()

0 commit comments

Comments
 (0)