]> 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)
commit3ddc5e30bd68d2805026499620679857254cec41
treea805f73b8d2008a2aa6caece5c82e53005340559
parent11052050f9ca0e2a100775f370e13eaefb2f1aea
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]