]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Selftests, remove prints from sockmap tests
authorJohn Fastabend <john.fastabend@gmail.com>
Wed, 13 May 2020 19:13:27 +0000 (12:13 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Sat, 16 May 2020 00:56:49 +0000 (02:56 +0200)
commit227113e7b06ca0584807dc645f1b40c7c205cdbd
tree5df3a25f93e9429085ed5360c1afa6e50996c323
parent31685d9fe3ba1b6fbc28a5eab79f850d296240b2
bpf: Selftests, remove prints from sockmap tests

The prints in the test_sockmap programs were only useful when we
didn't have enough control over test infrastructure to know from
user program what was being pushed into kernel side.

Now that we have or will shortly have better test controls lets
remove the printers. This means we can remove half the programs
and cleanup bpf side.

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/158939720756.15176.9806965887313279429.stgit@john-Precision-5820-Tower
tools/testing/selftests/bpf/progs/test_sockmap_kern.h
tools/testing/selftests/bpf/test_sockmap.c