Skip to content

net: Infrastructure changes for [kz]proxy

Tom Herbert netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3proto_ops: Add locked held versions of sendmsg and sendpageinclude/linux/net.h include/net/sock.h include/net/tcp.h +4 more+95 -133 replies
2/3skbuff: Function to send an skbuf on a socketinclude/linux/skbuff.h net/core/skbuff.c+104 -01 reply
3/3strparser: Generalize strparserDocumentation/networking/strparser.txt include/net/strparser.h net/kcm/kcmproc.c +2 more+424 -2872 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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