bpf: sockmap, more BPF_SK_SKB_STREAM_VERDICT tests
authorJohn Fastabend <john.fastabend@gmail.com>
Wed, 28 Mar 2018 19:49:30 +0000 (12:49 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 29 Mar 2018 22:09:43 +0000 (00:09 +0200)
commit2e3f6c5ff253b545b3916300d02871fcc101d4a7
tree44ae73f8c794e52f281830650e87b843cd6743d9
parentfa246693a111fab32bd51d20f07a347e42773ee9
bpf: sockmap, more BPF_SK_SKB_STREAM_VERDICT tests

Add BPF_SK_SKB_STREAM_VERDICT tests for ingress hook. While
we do this also bring stream tests in-line with MSG based
testing.

A map for skb options is added for userland to push options
at BPF programs.

Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
samples/sockmap/sockmap_kern.c
samples/sockmap/sockmap_test.sh
samples/sockmap/sockmap_user.c