]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/bpf: test_xdp_redirect: Rename BPF sections
authorBastien Curutchet (eBPF Foundation) <bastien.curutchet@bootlin.com>
Fri, 10 Jan 2025 09:21:09 +0000 (10:21 +0100)
committerMartin KaFai Lau <martin.lau@kernel.org>
Sat, 11 Jan 2025 01:29:05 +0000 (17:29 -0800)
commit2c6c5c7c1ad18761c399ef3376f5320eb13f92eb
tree3404ae581666284b3abe6b4576b84aff2bb9bb7c
parent95ad526edebcb3a68429315c81024ffc4ec0980a
selftests/bpf: test_xdp_redirect: Rename BPF sections

SEC("redirect_to_111") and SEC("redirect_to_222") can't be loaded by the
__load() helper.

Rename both sections SEC("xdp") so it can be interpreted by the __load()
helper in upcoming patch.
Update the test_xdp_redirect.sh to use the program name instead of the
section name to load the BPF program.

Signed-off-by: Bastien Curutchet (eBPF Foundation) <bastien.curutchet@bootlin.com>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Reviewed-by: Alexis Lothoré (eBPF Foundation) <alexis.lothore@bootlin.com>
Link: https://patch.msgid.link/20250110-xdp_redirect-v2-1-b8f3ae53e894@bootlin.com
tools/testing/selftests/bpf/progs/test_xdp_redirect.c
tools/testing/selftests/bpf/test_xdp_redirect.sh