]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests/bpf: test_xdp_vlan: Rename BPF sections
authorBastien Curutchet (eBPF Foundation) <bastien.curutchet@bootlin.com>
Fri, 21 Feb 2025 10:04:57 +0000 (11:04 +0100)
committerMartin KaFai Lau <martin.lau@kernel.org>
Wed, 19 Mar 2025 22:59:27 +0000 (15:59 -0700)
commit0f9ff4cb687d014fba2a59a6f182e855a9a721ad
tree13ac87b6d65e7edea448def7efef94cccef9ba46
parenta2598045ead99b51b00e81d46560757b9a95bd84
selftests/bpf: test_xdp_vlan: Rename BPF sections

The __load() helper expects BPF sections to be names 'xdp' or 'tc'

Rename BPF sections so they can be loaded with the __load() helper in
upcoming patch.
Rename the BPF functions with their previous section's name.
Update the 'ip link' commands in the script to use the program name
instead of the section name to load the BPF program.

Acked-by: Stanislav Fomichev <sdf@fomichev.me>
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/20250221-xdp_vlan-v1-1-7d29847169af@bootlin.com
tools/testing/selftests/bpf/progs/test_xdp_vlan.c
tools/testing/selftests/bpf/test_xdp_vlan.sh