selftests/bpf: Migrate test_xdp_redirect.sh to xdp_do_redirect.c
authorBastien Curutchet (eBPF Foundation) <bastien.curutchet@bootlin.com>
Fri, 10 Jan 2025 09:21:10 +0000 (10:21 +0100)
committerMartin KaFai Lau <martin.lau@kernel.org>
Sat, 11 Jan 2025 01:29:05 +0000 (17:29 -0800)
commita94df601091ffcee576925973b51ce8838851d26
tree35d24ad94f9e1a14c9b929855feee59826b27ebe
parent2c6c5c7c1ad18761c399ef3376f5320eb13f92eb
selftests/bpf: Migrate test_xdp_redirect.sh to xdp_do_redirect.c

test_xdp_redirect.sh can't be used by the BPF CI.

Migrate test_xdp_redirect.sh into a new test case in xdp_do_redirect.c.
It uses the same network topology and the same BPF programs located in
progs/test_xdp_redirect.c and progs/xdp_dummy.c.
Remove test_xdp_redirect.sh and its Makefile entry.

Signed-off-by: Bastien Curutchet (eBPF Foundation) <bastien.curutchet@bootlin.com>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://patch.msgid.link/20250110-xdp_redirect-v2-2-b8f3ae53e894@bootlin.com
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/prog_tests/xdp_do_redirect.c
tools/testing/selftests/bpf/test_xdp_redirect.sh [deleted file]