Skip to content

svc: SVC Transport Switch

Tom Tucker linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest38 patches 44 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/38svc: Add an svc transport classinclude/linux/sunrpc/debug.h include/linux/sunrpc/svc_xprt.h net/sunrpc/Makefile +1 more+129 -110 replies
2/38svc: Make svc_sock the tcp/udp transportinclude/linux/sunrpc/debug.h include/linux/sunrpc/svcsock.h net/sunrpc/sunrpc_syms.c +1 more+39 -32 replies
3/38svc: Change the svc_sock in the rqstp structure to a transportinclude/linux/sunrpc/svc.h+4 -10 replies
4/38svc: Add a max payload value to the transportinclude/linux/sunrpc/svc_xprt.h net/sunrpc/svc.c net/sunrpc/svcsock.c+4 -30 replies
5/38svc: Move sk_sendto and sk_recvfrom to svc_xprt_classinclude/linux/sunrpc/svc_xprt.h include/linux/sunrpc/svcsock.h net/sunrpc/svcsock.c+8 -90 replies
6/38svc: Add transport specific xpo_release functioninclude/linux/sunrpc/svc.h include/linux/sunrpc/svc_xprt.h net/sunrpc/svcsock.c+11 -92 replies
7/38svc: Add per-transport delete functionsinclude/linux/sunrpc/svc_xprt.h net/sunrpc/svcsock.c+45 -130 replies
8/38svc: Add xpo_prep_reply_hdrinclude/linux/sunrpc/svc_xprt.h net/sunrpc/svc.c net/sunrpc/svcsock.c+21 -30 replies
9/38svc: Add a transport function that checks for write spaceinclude/linux/sunrpc/svc_xprt.h net/sunrpc/svcsock.c+57 -268 replies
10/38svc: Move close processing to a single placenet/sunrpc/svcsock.c+10 -140 replies
11/38svc: Add xpo_accept transport functioninclude/linux/sunrpc/svc_xprt.h include/linux/sunrpc/svcsock.h net/sunrpc/svcsock.c+72 -586 replies
12/38svc: Add a generic transport svc_create_xprt functioninclude/linux/sunrpc/svc_xprt.h net/sunrpc/svc_xprt.c net/sunrpc/svcsock.c+85 -150 replies
13/38svc: Change services to use new svc_create_xprt servicefs/lockd/svc.c fs/nfs/callback.c fs/nfsd/nfssvc.c +3 more+12 -370 replies
14/38svc: Change sk_inuse to a krefinclude/linux/sunrpc/svc_xprt.h include/linux/sunrpc/svcsock.h net/sunrpc/svc_xprt.c +1 more+46 -342 replies
15/38svc: Move sk_flags to the svc_xprt structureinclude/linux/sunrpc/svc_xprt.h include/linux/sunrpc/svcsock.h net/sunrpc/svcsock.c+87 -870 replies
16/38svc: Move sk_server and sk_pool to svc_xprtinclude/linux/sunrpc/svc_xprt.h include/linux/sunrpc/svcsock.h net/sunrpc/svc_xprt.c +1 more+35 -340 replies
17/38svc: Make close transport independentfs/lockd/svc.c fs/nfsd/nfssvc.c include/linux/sunrpc/svc_xprt.h +4 more+63 -700 replies
18/38svc: Move sk_reserved to svc_xprtinclude/linux/sunrpc/svc_xprt.h include/linux/sunrpc/svcsock.h net/sunrpc/svcsock.c+6 -70 replies
19/38svc: Make the enqueue service transport neutral and export it.net/sunrpc/svcsock.c+48 -460 replies
20/38svc: Make svc_send transport neutralinclude/linux/sunrpc/svc_xprt.h include/linux/sunrpc/svcsock.h net/sunrpc/svc_xprt.c +1 more+10 -120 replies
21/38svc: Change svc_sock_received to svc_xprt_received and export itinclude/linux/sunrpc/svc_xprt.h net/sunrpc/svcsock.c+18 -190 replies
22/38svc: Move accept call to svc_xprt_received to common codenet/sunrpc/svcsock.c+1 -20 replies
23/38svc: Remove sk_lastrecvinclude/linux/sunrpc/svcsock.h net/sunrpc/svcsock.c+1 -50 replies
24/38svc: Move the authinfo cache to svc_xprt.include/linux/sunrpc/svc_xprt.h include/linux/sunrpc/svcsock.h net/sunrpc/svc_xprt.c +2 more+49 -400 replies
25/38svc: Make deferral processing xprt independentinclude/linux/sunrpc/svc.h include/linux/sunrpc/svc_xprt.h include/linux/sunrpc/svcsock.h +2 more+29 -370 replies
26/38svc: Move the sockaddr information to svc_xprtinclude/linux/sunrpc/svc_xprt.h include/linux/sunrpc/svcsock.h net/sunrpc/svc_xprt.c +1 more+110 -320 replies
27/38svc: Make svc_sock_release svc_xprt_releasenet/sunrpc/svcsock.c+7 -90 replies
28/38svc: Make svc_recv transport neutralnet/sunrpc/svcsock.c+31 -300 replies
29/38svc: Make svc_age_temp_sockets svc_age_temp_transportsnet/sunrpc/svcsock.c+19 -180 replies
30/38svc: Move common create logic to common codenet/sunrpc/svc_xprt.c net/sunrpc/svcsock.c+27 -213 replies
31/38svc: Removing remaining references to rq_sock in rqstpinclude/linux/sunrpc/svc.h net/sunrpc/svcsock.c+25 -180 replies
32/38svc: Make svc_check_conn_limits xprt independentnet/sunrpc/svcsock.c+14 -140 replies
33/38svc: Move the xprt independent code to the svc_xprt.c fileinclude/linux/sunrpc/svc_xprt.h net/sunrpc/svc_xprt.c net/sunrpc/svcsock.c+776 -7860 replies
34/38svc: Add transport hdr size for defer/revisitinclude/linux/sunrpc/svc.h net/sunrpc/svc_xprt.c net/sunrpc/svcsock.c+31 -92 replies
35/38svc: Add /proc/sys/sunrpc/transport filesinclude/linux/sunrpc/svc_xprt.h net/sunrpc/svc_xprt.c net/sunrpc/sysctl.c+60 -00 replies
36/38svc: Add svc API that queries for a transport instancefs/lockd/svc.c include/linux/sunrpc/svc_xprt.h net/sunrpc/svc_xprt.c+37 -140 replies
37/38knfsd: Support adding transports by writing portlist filefs/nfsd/nfsctl.c net/sunrpc/svc_xprt.c+52 -14 replies
38/38svc: Add svc_xprt_names service to replace svc_sock_namesfs/nfsd/nfsctl.c include/linux/sunrpc/svc_xprt.h net/sunrpc/svc_xprt.c+37 -15 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/38] svc: SVC Transport Switch

The Server Side Transport switch implements a pluggable transport provider layer for RPC servers. This switch allows network transport drivers to be dynamically loaded and registered, thereby extending the set of transports that can carry RPC. This patchset includes a transport provider driver for TCP and UDP sockets.

This version of the patchset includes the following updates to the original patch series:

- Changed transport hdr len fields and computations to use size_t

- Matched local variables to sign of socket specific write-space functions in xpo_wspace transport functions.

- Modified tcp_has_wspace function to include min_wspace consideration

- Changed address length functions to size_t

- Changed port helper function return types to unsigned short

- Changed error return from svc_addr_len to EAFNOSUPPORT from ENOTSUPP

- When modifying function prototypes or adding new functions adhered to convention of keeping signature on a single line.

- Removed debug printk from svc_send

- Created separate patch for change that moves the call to svc_xprt_received to common code for the accept path

- Combined the portlist update patches into a single patch and updated the error codes to give more helpful perror strings when writing garbage to the portlist file.

This patchset is based on 2.6.24-rc5 and has been tested on V2, V3 and V4 over the UDP, TCP and RDMA transports.

Signature · 1 line
Signed-off-by: Tom Tucker <[email protected]>