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)
commit82a8616889d506cb690cfc0afb2ccadda120461d
tree69830c783d9c4b3ee6d7857fabbd9f0b89ac58af
parent015632bb30daaaee64e1bcac07570860e0bf3092
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