]> www.infradead.org Git - users/dwmw2/linux.git/commit
bpf: selftests: Move xfrm tunnel test to test_progs
authorDaniel Xu <dxu@dxuuu.xyz>
Thu, 14 Dec 2023 22:49:05 +0000 (15:49 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 15 Dec 2023 01:12:49 +0000 (17:12 -0800)
commite7adc8291a9e9c232d600d82465cbbb682164ca3
treec40277183677d835d38103bd9eda01d19b7e7c6b
parent02b4e126e6a5f5552da2ccec47a028984d2d9654
bpf: selftests: Move xfrm tunnel test to test_progs

test_progs is better than a shell script b/c C is a bit easier to
maintain than shell. Also it's easier to use new infra like memory
mapped global variables from C via bpf skeleton.

Co-developed-by: Antony Antony <antony.antony@secunet.com>
Signed-off-by: Antony Antony <antony.antony@secunet.com>
Signed-off-by: Daniel Xu <dxu@dxuuu.xyz>
Link: https://lore.kernel.org/r/a350db9e08520c64544562d88ec005a039124d9b.1702593901.git.dxu@dxuuu.xyz
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/test_tunnel.c
tools/testing/selftests/bpf/progs/test_tunnel_kern.c
tools/testing/selftests/bpf/test_tunnel.sh