]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/bpf: add cgroup skb direct packet access test
authorMahe Tardy <mahe.tardy@gmail.com>
Mon, 25 Nov 2024 15:26:03 +0000 (15:26 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 2 Dec 2024 16:41:17 +0000 (08:41 -0800)
commit9aef3aaa7059c4dd0cc875107e05bb3198a7fc33
treeae7e2e48c81ba1f6e8c0b96b33ddcbdcd82cd7e3
parented3e469d021cba343a3b32f0876f8f28b1d9bfdd
selftests/bpf: add cgroup skb direct packet access test

This verifies that programs of BPF_PROG_TYPE_CGROUP_SKB can access
skb->data_end with direct packet access when being run with
BPF_PROG_TEST_RUN.

Signed-off-by: Mahe Tardy <mahe.tardy@gmail.com>
Link: https://lore.kernel.org/r/20241125152603.375898-2-mahe.tardy@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/cgroup_skb_direct_packet_access.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/cgroup_skb_direct_packet_access.c [new file with mode: 0644]