]> git.baikalelectronics.ru Git - kernel.git/commit
bpf, selftests: Add test for ktls with skb bpf ingress policy
authorJohn Fastabend <john.fastabend@gmail.com>
Fri, 29 May 2020 23:07:19 +0000 (16:07 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 1 Jun 2020 21:48:32 +0000 (14:48 -0700)
commitdaf82c70d579f9231605075ed2941a63b5b5ff18
treebb9c682653317ac5d67719f67ab9a011b545613f
parentabeb642dc4627de97b2e53494ad51ab544691214
bpf, selftests: Add test for ktls with skb bpf ingress policy

This adds a test for bpf ingress policy. To ensure data writes happen
as expected with extra TLS headers we run these tests with data
verification enabled by default. This will test receive packets have
"PASS" stamped into the front of the payload.

Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/159079363965.5745.3390806911628980210.stgit@john-Precision-5820-Tower
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/progs/test_sockmap_kern.h
tools/testing/selftests/bpf/test_sockmap.c