selftests/bpf: Update xdp_redirect_map prog sections for libbpf
authorAlexis Lothoré (eBPF Foundation) <alexis.lothore@bootlin.com>
Sun, 21 Jul 2024 19:33:03 +0000 (21:33 +0200)
committerAndrii Nakryiko <andrii@kernel.org>
Mon, 29 Jul 2024 22:05:09 +0000 (15:05 -0700)
commit0bfdda9db88990539b63a11028c84c4c069e8a0f
tree5e174d14baf6fa5dc925f1346f8c6a47e496cdb6
parent04a94133f1b3cccb19e056c26f056c50b4e5b3b1
selftests/bpf: Update xdp_redirect_map prog sections for libbpf

xdp_redirect_map.c is a bpf program used by test_xdp_veth.sh, which is not
handled by the generic test runner (test_progs). To allow converting this
test to test_progs, the corresponding program must be updated to allow
handling it through skeletons generated by bpftool and libbpf.

Update programs section names to allow to manipulate those with libbpf.

Signed-off-by: Alexis Lothoré (eBPF Foundation) <alexis.lothore@bootlin.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Stanislav Fomichev <sdf@fomichev.me>
Link: https://lore.kernel.org/bpf/20240721-convert_test_xdp_veth-v4-1-23bdba21b2f9@bootlin.com
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
tools/testing/selftests/bpf/progs/xdp_redirect_map.c