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)
commitb8b394faa92418521829bbd4ae9cb22fb6c504ed
treea805f73b8d2008a2aa6caece5c82e53005340559
parent81110384441a59cff47430f20f049e69b98c17f4
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]