]> git.baikalelectronics.ru Git - kernel.git/commit
bpf, selftests: Test probe_* helpers from SCHED_CLS
authorJohn Fastabend <john.fastabend@gmail.com>
Sun, 24 May 2020 16:51:57 +0000 (09:51 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 1 Jun 2020 21:38:21 +0000 (14:38 -0700)
commitf596e9800929c7ba8af1e5c355049f9da137a297
tree959148dc9a5a0c3a401d0ecdde95807946c40cdb
parent5fc0ccf66cb134a93f29dba1ee714807dba2779f
bpf, selftests: Test probe_* helpers from SCHED_CLS

Lets test using probe* in SCHED_CLS network programs as well just
to be sure these keep working. Its cheap to add the extra test
and provides a second context to test outside of sk_msg after
we generalized probe* helpers to all networking types.

Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yhs@fb.com>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/159033911685.12355.15951980509828906214.stgit@john-Precision-5820-Tower
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/skb_helpers.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/test_skb_helpers.c [new file with mode: 0644]