]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: add map tests for BPF_PROG_TYPE_SK_MSG
authorJohn Fastabend <john.fastabend@gmail.com>
Sun, 18 Mar 2018 19:57:31 +0000 (12:57 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 19 Mar 2018 20:14:39 +0000 (21:14 +0100)
commitac6cc3a10c05721599f75a6ad49e24142bf57c3a
tree69830c783d9c4b3ee6d7857fabbd9f0b89ac58af
parentd345afaf638d31f01cef6207a4b557d7f7986581
bpf: add map tests for BPF_PROG_TYPE_SK_MSG

Add map tests to attach BPF_PROG_TYPE_SK_MSG types to a sockmap.

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/sockmap_parse_prog.c
tools/testing/selftests/bpf/sockmap_tcp_msg_prog.c [new file with mode: 0644]
tools/testing/selftests/bpf/sockmap_verdict_prog.c
tools/testing/selftests/bpf/test_maps.c