]> Gentwo Git Trees - linux/.git/commit
selftests/bpf: rename test_tc_edt.bpf.c section to expose program type
authorAlexis Lothoré (eBPF Foundation) <alexis.lothore@bootlin.com>
Fri, 28 Nov 2025 22:27:18 +0000 (23:27 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 29 Nov 2025 17:37:41 +0000 (09:37 -0800)
commit4b4833acc63e9c8ea9d5897ee84b694f30b23882
treec6732f40e479594bb6b5c2a01cf87def6bf97781
parent34235a3544f20291819c20d1d6c4ba07784045a2
selftests/bpf: rename test_tc_edt.bpf.c section to expose program type

The test_tc_edt BPF program uses a custom section name, which works fine
when manually loading it with tc, but prevents it from being loaded with
libbpf.

Update the program section name to "tc" to be able to manipulate it with
a libbpf-based C test.

Signed-off-by: Alexis Lothoré (eBPF Foundation) <alexis.lothore@bootlin.com>
Link: https://lore.kernel.org/r/20251128-tc_edt-v2-1-26db48373e73@bootlin.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/progs/test_tc_edt.c
tools/testing/selftests/bpf/test_tc_edt.sh