net: Infrastructure changes for [kz]proxy
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 7 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | proto_ops: Add locked held versions of sendmsg and sendpageinclude/ include/ include/ +4 more | +95 | 3 replies | |
| 2/3 | skbuff: Function to send an skbuf on a socketinclude/ net/ | +104 | 1 reply | |
| 3/3 | strparser: Generalize strparserDocumentation/ include/ net/ +2 more | +424 | 2 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH net-next 0/3] net: Infrastructure changes for [kz]proxy
This patch set contains some general infrastructure enhancements that will be used by kernel proxy and zero proxy.
The changes are:
- proto_ops: Add locked versions of sendmsg and sendpage
- skb_send_sock: Allow sending and skb on a socket within the kernel
- Generalize strparser. Allow it to be used in other contexts than just in the read_sock path. This will be used in the transmit path of zero proxy.
Some nice future work (which I've been discussing with John Fastabend) will be to make some of the related functions to allow gifting of skbs We should be able to do that with skb_send_sock and strp_process. I'd also like this feature in the read_sock callbeck.
Tested: Ran modified kernel without incident. Tested new functionality using zero proxy (in development).
Tom Herbert (3):
proto_ops: Add locked held versions of sendmsg and sendpage
skbuff: Function to send an skbuf on a socket
strparser: Generalize strparser
Documentation/networking/strparser.txt | 207 +++++++++++++++------- include/linux/net.h | 12 ++ include/linux/skbuff.h | 3 + include/net/sock.h | 3 + include/net/strparser.h | 119 +++++++------ include/net/tcp.h | 3 + net/core/skbuff.c | 101 +++++++++++ net/core/sock.c | 22 +++ net/ipv4/af_inet.c | 2 + net/ipv4/tcp.c | 39 ++-- net/kcm/kcmproc.c | 34 ++-- net/kcm/kcmsock.c | 38 ++-- net/socket.c | 27 +++ net/strparser/strparser.c | 313 ++++++++++++++++++++------------- 14 files changed, 623 insertions(+), 300 deletions(-)
Signature · 1 line
2.11.0