]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite4759dc9588b3bd1a5d6d4530389c4276e300f7c
tree20db81316e8437b136cd0e605b76f7f7b9397bbe
parent774dd6a32acbcac3aaedc62e98af93fd68e84055
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