Skip to content

splice, net: Some miscellaneous MSG_SPLICE_PAGES changes

David Howells bpf linux-crypto linux-mm linux-nfs lkml netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 3 repliesApplied 6/6

Patches in v1 All 6 applied

#Subject and filesSizeRepliesApplied
1/6Remove file->f_op->sendpageinclude/linux/fs.h+0 -10 repliesApplied
2/6algif: Remove hash_sendpage*()crypto/algif_hash.c+0 -660 repliesApplied
3/6sunrpc: Use sendmsg(MSG_SPLICE_PAGES) rather then sendpageinclude/linux/sunrpc/svc.h net/sunrpc/svcsock.c+17 -323 repliesApplied
4/6tcp_bpf: Make tcp_bpf_sendpage() go through tcp_bpf_sendmsg(MSG_SPLICE_PAGES)net/ipv4/tcp_bpf.c+9 -400 repliesApplied
5/6kcm: Use sendmsg(MSG_SPLICE_PAGES) rather then sendpagenet/kcm/kcmsock.c+11 -50 repliesApplied
6/6kcm: Send multiple frags in one sendmsg()include/net/kcm.h net/kcm/kcmsock.c+51 -770 repliesApplied

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by.

PatchChuck LeverDavid Howells
1/6
2/6
3/6A-b R-b
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net-next 0/6] splice, net: Some miscellaneous MSG_SPLICE_PAGES changes

Now that the splice_to_socket() has been rewritten so that nothing now uses the ->sendpage() file op[1], some further changes can be made, so here are some miscellaneous changes that can now be done.

(1) Remove the ->sendpage() file op.

(2) Remove hash_sendpage*() from AF_ALG.

(3) Make sunrpc send multiple pages in single sendmsg() call rather than calling sendpage() in TCP (or maybe TLS).

(4) Make tcp_bpf_sendpage() a wrapper around tcp_bpf_sendmsg().

(5) Make AF_KCM use sendmsg() when calling down to TCP and then make it send entire fragment lists in single sendmsg calls.

I've pushed the patches here also:

https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/log/?h=sendpage-3-misc

David

David Howells (6):
Remove file->f_op->sendpage
algif: Remove hash_sendpage*()
sunrpc: Use sendmsg(MSG_SPLICE_PAGES) rather then sendpage
tcp_bpf: Make tcp_bpf_sendpage() go through
tcp_bpf_sendmsg(MSG_SPLICE_PAGES)
kcm: Use sendmsg(MSG_SPLICE_PAGES) rather then sendpage
kcm: Send multiple frags in one sendmsg()

 crypto/algif_hash.c        |  66 --------------------
 include/linux/fs.h         |   1 -
 include/linux/sunrpc/svc.h |  11 ++--
 include/net/kcm.h          |   2 +-
 net/ipv4/tcp_bpf.c         |  49 +++------------
 net/kcm/kcmsock.c          | 120 ++++++++++++++++---------------------
 net/sunrpc/svcsock.c       |  38 ++++--------
 7 files changed, 77 insertions(+), 210 deletions(-)