Skip to content

Commit 0fc6025

Browse files
author
Martin KaFai Lau
committed
Merge branch 'selftests-bpf-migrate-test_xdp_redirect_multi-sh-to-test_progs'
Bastien Curutchet says: ==================== This patch series continues the work to migrate the *.sh tests into prog_tests framework. test_xdp_redirect_multi.sh tests the XDP redirections done through bpf_redirect_map(). This is already partly covered by test_xdp_veth.c that already tests map redirections at XDP level. What isn't covered yet by test_xdp_veth is the use of the broadcast flags (BPF_F_BROADCAST or BPF_F_EXCLUDE_INGRESS) and XDP egress programs. Hence, this patch series add test cases to test_xdp_veth.c to get rid of the test_xdp_redirect_multi.sh: - PATCH 1 & 2 Rework test_xdp_veth.c to avoid using the root namespace - PATCH 3 and 4 cover the broadcast flags - PATCH 5 covers the XDP egress programs NOTE: While working on this iteration I ran into a memory leak in net/core/rtnetlink.c that leads to oom-kill when running ./test_progs in a loop. This leak has been fixed by commit 1438f5d ("rtnetlink: fix netns leak with rtnl_setlink()") in the net tree. ==================== Link: https://patch.msgid.link/[email protected] Signed-off-by: Martin KaFai Lau <[email protected]>
2 parents 50b77eb + e06f5bf commit 0fc6025

File tree

6 files changed

+491
-515
lines changed

6 files changed

+491
-515
lines changed

tools/testing/selftests/bpf/Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ TEST_FILES = xsk_prereqs.sh $(wildcard progs/btf_dump_test_case_*.c)
100100

101101
# Order correspond to 'make run_tests' order
102102
TEST_PROGS := test_kmod.sh \
103-
test_xdp_redirect_multi.sh \
104103
test_tunnel.sh \
105104
test_lwt_seg6local.sh \
106105
test_lirc_mode2.sh \
@@ -135,7 +134,6 @@ TEST_GEN_PROGS_EXTENDED = \
135134
veristat \
136135
xdp_features \
137136
xdp_hw_metadata \
138-
xdp_redirect_multi \
139137
xdp_synproxy \
140138
xdping \
141139
xskxceiver

0 commit comments

Comments
 (0)