]> Gentwo Git Trees - linux/.git/commit
selftests/bpf: test_xsk: Integrate test_xsk.c to test_progs framework
authorBastien Curutchet (eBPF Foundation) <bastien.curutchet@bootlin.com>
Fri, 31 Oct 2025 08:04:51 +0000 (09:04 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 31 Oct 2025 16:24:39 +0000 (09:24 -0700)
commitd1aec26fce257799ad680cf1ad757ac2220c07cd
tree20baf9c6722a971572d7b2ba3cfe18bbe5892fdc
parent75fc630867bbdedd1ea25b8ed186ccd3d9dd724b
selftests/bpf: test_xsk: Integrate test_xsk.c to test_progs framework

test_xsk.c isn't part of the test_progs framework.

Integrate the tests defined by test_xsk.c into the test_progs framework
through a new file : prog_tests/xsk.c. ZeroCopy mode isn't tested in it
as veth peers don't support it.

Move test_xsk{.c/.h} to prog_tests/.

Add the find_bit library to test_progs sources in the Makefile as it is
is used by test_xsk.c

Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Signed-off-by: Bastien Curutchet (eBPF Foundation) <bastien.curutchet@bootlin.com>
Link: https://lore.kernel.org/r/20251031-xsk-v7-15-39fe486593a3@bootlin.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/prog_tests/test_xsk.c [moved from tools/testing/selftests/bpf/test_xsk.c with 100% similarity]
tools/testing/selftests/bpf/prog_tests/test_xsk.h [moved from tools/testing/selftests/bpf/test_xsk.h with 100% similarity]
tools/testing/selftests/bpf/prog_tests/xsk.c [new file with mode: 0644]
tools/testing/selftests/bpf/xskxceiver.c