]> 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)
commit70f234ad2aa260e02e24e4fbb4ee6b9d62902e01
treebb9c682653317ac5d67719f67ab9a011b545613f
parentec26768ed7c26e9af41336d0d631b5fc50612976
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