Skip to content

RFC Prepare NFS server for RPC-on-TLS

Chuck Lever linux-nfs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3SUNRPC: Move xs_stream_record_markerinclude/linux/sunrpc/msg_prot.h include/linux/sunrpc/svcauth.h net/sunrpc/xprtsock.c+16 -160 replies
2/3SUNRPC: Refactor xs_sendpages()include/linux/sunrpc/xdr.h net/sunrpc/socklib.c net/sunrpc/socklib.h +2 more+172 -1420 replies
3/3SUNRPC: Teach server to use xprt_sock_sendmsg for socket sendsnet/sunrpc/sunrpc.h net/sunrpc/svc.c net/sunrpc/svcsock.c +1 more+74 -1750 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH RFC 0/3] Prepare NFS server for RPC-on-TLS

The following series implements changes to the Linux NFS server's socket transport that are pre-requisite to supporting RPC on TLS. The socket transport is made to use the iov_iter-based kernel socket APIs. These changes are modeled after similar changes made to the NFS client-side socket transport.

This is a draft patch series. I have tried it out and it is working, but as it has changed only the Reply-send side, it is incomplete. This posting is a request for comments -- show your work.

One additional change I might make in this series is moving the xpt_mutex into the socket sendto methods. This is because the RDMA sendto method doesn't appear to require serialization. That is still down the road.

---

Chuck Lever (3):
SUNRPC: Move xs_stream_record_marker
SUNRPC: Refactor xs_sendpages()
SUNRPC: Teach server to use xprt_sock_sendmsg for socket sends

 include/linux/sunrpc/msg_prot.h |   13 ++
 include/linux/sunrpc/svcauth.h  |    1 
 include/linux/sunrpc/xdr.h      |   14 ---
 net/sunrpc/socklib.c            |  136 ++++++++++++++++++++++++++
 net/sunrpc/socklib.h            |   15 +++
 net/sunrpc/sunrpc.h             |    4 -
 net/sunrpc/svc.c                |    4 -
 net/sunrpc/svcsock.c            |  203 +++++++++++++--------------------------
 net/sunrpc/xprtsock.c           |  203 ++++++---------------------------------
 9 files changed, 261 insertions(+), 332 deletions(-)
 create mode 100644 net/sunrpc/socklib.h

--
Chuck Lever