From: John Fastabend <john.fastabend@gmail.com>
To: ast@kernel.org, daniel@iogearbox.net
Cc: netdev@vger.kernel.org, john.fastabend@gmail.com,
jakub@cloudflare.com, lmb@cloudflare.com
Subject: [bpf-next PATCH 0/2] Add skb_adjust_room() for SK_SKB
Date: Fri, 25 Sep 2020 21:26:41 -0700 [thread overview]
Message-ID: <160109391820.6363.6475038352873960677.stgit@john-Precision-5820-Tower> (raw)
This implements the helper skb_adjust_room() for BPF_SKS_BK_STREAM_VERDICT
programs so we can push/pop headers from the data on recieve. The
obvious use case is to pop TLS headers of kTLS packets.
The first patch implements the helper and the second updates test_sockmap
to use it removing some case handling we had to do earlier to account for
the TLS headers in the kTLS case.
I have a couple more series to flush off my stack then I'll work on
modernizing the test_sockmap tests themselves. It was created before
global data and a few other nice things so its a bit more verbose
than necessary.
Thanks,
John
---
John Fastabend (2):
bpf, sockmap: add skb_adjust_room to pop bytes off ingress payload
bpf, sockmap: update selftests to use skb_adjust_room
net/core/filter.c | 51 ++++++++++++++++++++
.../selftests/bpf/progs/test_sockmap_kern.h | 34 ++++++++++---
tools/testing/selftests/bpf/test_sockmap.c | 27 ++---------
3 files changed, 82 insertions(+), 30 deletions(-)
--
Signature
next reply other threads:[~2020-09-26 4:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-26 4:26 John Fastabend [this message]
2020-09-26 4:27 ` [bpf-next PATCH 1/2] bpf, sockmap: add skb_adjust_room to pop bytes off ingress payload John Fastabend
2020-09-29 14:59 ` Daniel Borkmann
2020-09-29 15:41 ` John Fastabend
2020-09-30 9:55 ` Jakub Sitnicki
2020-10-01 1:59 ` John Fastabend
2020-09-26 4:27 ` [bpf-next PATCH 2/2] bpf, sockmap: update selftests to use skb_adjust_room John Fastabend
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=160109391820.6363.6475038352873960677.stgit@john-Precision-5820-Tower \
--to=john.fastabend@gmail.com \
--cc=ast@kernel.org \
--cc=daniel@iogearbox.net \
--cc=jakub@cloudflare.com \
--cc=lmb@cloudflare.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).