public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [bpf-next PATCH 0/4] bpf, sockmap BPF_F_INGRESS support
@ 2018-03-26 17:22 John Fastabend
  2018-03-26 17:22 ` [bpf-next PATCH 1/4] bpf: sockmap redirect ingress support John Fastabend
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: John Fastabend @ 2018-03-26 17:22 UTC (permalink / raw)
  To: ast, daniel; +Cc: netdev, davem

This series adds the BPF_F_INGRESS flag support to the reidrect APIs.
Bringing the sockmap API in-line with the cls_bpf redirect APIs.

We add it to both variants of sockmap programs, the first patch adds
support for tx ulp hooks and the third patch adds supoprt for the recv
skb hooks. Patches two and four add tests for the corresponding
ingress redirect hooks.

Follow on patches can address busy polling support, but next series
from me will move the sockmap sample program into selftests.

Thanks,
John

---

John Fastabend (4):
      bpf: sockmap redirect ingress support
      bpf: sockmap, add BPF_F_INGRESS tests
      bpf: sockmap, BPF_F_INGRESS flag for BPF_SK_SKB_STREAM_VERDICT:
      bpf: sockmap, more BPF_SK_SKB_STREAM_VERDICT tests


 include/linux/filter.h          |    2 
 include/net/sock.h              |    1 
 kernel/bpf/sockmap.c            |  290 ++++++++++++++++++++++++++++++++++++---
 net/core/filter.c               |    4 -
 net/ipv4/tcp.c                  |   10 +
 samples/sockmap/sockmap_kern.c  |   62 +++++++-
 samples/sockmap/sockmap_test.sh |   40 +++++
 samples/sockmap/sockmap_user.c  |   58 ++++++++
 8 files changed, 430 insertions(+), 37 deletions(-)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-03-26 17:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-26 17:22 [bpf-next PATCH 0/4] bpf, sockmap BPF_F_INGRESS support John Fastabend
2018-03-26 17:22 ` [bpf-next PATCH 1/4] bpf: sockmap redirect ingress support John Fastabend
2018-03-26 17:22 ` [bpf-next PATCH 2/4] bpf: sockmap, add BPF_F_INGRESS tests John Fastabend
2018-03-26 17:22 ` [bpf-next PATCH 3/4] bpf: sockmap, BPF_F_INGRESS flag for BPF_SK_SKB_STREAM_VERDICT: John Fastabend
2018-03-26 17:22 ` [bpf-next PATCH 4/4] bpf: sockmap, more BPF_SK_SKB_STREAM_VERDICT tests John Fastabend

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox