]> 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)
commit463bac5f1ca79fcd964bf50426eab024fb4dd8a4
treebb9c682653317ac5d67719f67ab9a011b545613f
parente91de6afa81c10e9f855c5695eb9a53168d96b73
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