]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: selftest additions for SOCKHASH
authorJohn Fastabend <john.fastabend@gmail.com>
Mon, 14 May 2018 17:00:18 +0000 (10:00 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 16 May 2018 20:00:12 +0000 (22:00 +0200)
commit23f1a3b23a8e13d64f4c90f3487ee1e91aa4e78e
treea805f73b8d2008a2aa6caece5c82e53005340559
parent5cadb0760c3e8487f1fcccf81251ccd74047aae5
bpf: selftest additions for SOCKHASH

This runs existing SOCKMAP tests with SOCKHASH map type. To do this
we push programs into include file and build two BPF programs. One
for SOCKHASH and one for SOCKMAP.

We then run the entire test suite with each type.

Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/include/uapi/linux/bpf.h
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/bpf_helpers.h
tools/testing/selftests/bpf/test_sockhash_kern.c [new file with mode: 0644]
tools/testing/selftests/bpf/test_sockmap.c
tools/testing/selftests/bpf/test_sockmap_kern.c
tools/testing/selftests/bpf/test_sockmap_kern.h [new file with mode: 0644]