Netdev List
 help / color / mirror / Atom feed
* [bpf-next PATCH 0/3] sockmap support for msg_peek flag
@ 2018-10-16 18:07 John Fastabend
  2018-10-16 18:07 ` [bpf-next PATCH 1/3] bpf: skmsg, improve sk_msg_used_element to work in cork context John Fastabend
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: John Fastabend @ 2018-10-16 18:07 UTC (permalink / raw)
  To: ast, daniel; +Cc: netdev

This adds support for the MSG_PEEK flag when redirecting into an
ingress psock sk_msg queue.

The first patch adds some base support to the helpers, then the
feature, and finally we add an option for the test suite to do
a duplicate MSG_PEEK call on every recv to test the feature.

With duplicate MSG_PEEK call all tests continue to PASS.

---

John Fastabend (3):
      bpf: skmsg, improve sk_msg_used_element to work in cork context
      bpf: sockmap, support for msg_peek in sk_msg with redirect ingress
      bpf: sockmap, add msg_peek tests to test_sockmap


 include/linux/skmsg.h                      |   13 +-
 include/net/tcp.h                          |    2 
 net/ipv4/tcp_bpf.c                         |   42 +++++--
 net/tls/tls_sw.c                           |    3 -
 tools/testing/selftests/bpf/test_sockmap.c |  167 +++++++++++++++++++---------
 5 files changed, 153 insertions(+), 74 deletions(-)

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

end of thread, other threads:[~2018-10-17  8:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-16 18:07 [bpf-next PATCH 0/3] sockmap support for msg_peek flag John Fastabend
2018-10-16 18:07 ` [bpf-next PATCH 1/3] bpf: skmsg, improve sk_msg_used_element to work in cork context John Fastabend
2018-10-16 18:08 ` [bpf-next PATCH 2/3] bpf: sockmap, support for msg_peek in sk_msg with redirect ingress John Fastabend
2018-10-16 18:08 ` [bpf-next PATCH 3/3] bpf: sockmap, add msg_peek tests to test_sockmap John Fastabend
2018-10-16 18:41 ` [bpf-next PATCH 0/3] sockmap support for msg_peek flag Alexei Starovoitov
2018-10-17  0:32   ` Daniel Borkmann

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