bpf: skb_verdict, support SK_PASS on RX BPF path
authorJohn Fastabend <john.fastabend@gmail.com>
Thu, 20 Dec 2018 19:35:32 +0000 (11:35 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 20 Dec 2018 22:47:09 +0000 (23:47 +0100)
commit51199405f967207de372d9b60989eb87d7ae8809
tree741ba99a4d0a7d867ce0cfae70af1d1a83d1adb3
parent7a69c0f250568e6ab72f401b2c69aa0e666c94f2
bpf: skb_verdict, support SK_PASS on RX BPF path

Add SK_PASS verdict support to SK_SKB_VERDICT programs. Now that
support for redirects exists we can implement SK_PASS as a redirect
to the same socket. This simplifies the BPF programs and avoids an
extra map lookup on RX path for simple visibility cases.

Further, reduces user (BPF programmer in this context) confusion
when their program drops skb due to lack of support.

Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
net/core/skmsg.c