bpf: Selftests, add ktls tests to test_sockmap
authorJohn Fastabend <john.fastabend@gmail.com>
Wed, 13 May 2020 19:16:02 +0000 (12:16 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Sat, 16 May 2020 00:56:49 +0000 (02:56 +0200)
commit96586dd9268d26b278a1dd9110080001a6acbb0f
tree20db81316e8437b136cd0e605b76f7f7b9397bbe
parenta7238f7c79dda1c484f92478c42408e1a3d418c6
bpf: Selftests, add ktls tests to test_sockmap

Until now we have only had minimal ktls+sockmap testing when being
used with helpers and different sendmsg/sendpage patterns. Add a
pass with ktls here.

To run just ktls tests,

 $ ./test_sockmap --whitelist="ktls"

Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Jakub Sitnicki <jakub@cloudflare.com>
Link: https://lore.kernel.org/bpf/158939736278.15176.5435314315563203761.stgit@john-Precision-5820-Tower
tools/testing/selftests/bpf/test_sockmap.c