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 Latest40 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/40svc: Add an svc transport classinclude/linux/sunrpc/debug.h include/linux/sunrpc/svc_xprt.h net/sunrpc/Makefile +1 more+117 -10 replies
2/40svc: Make svc_sock the tcp/udp transportinclude/linux/sunrpc/debug.h include/linux/sunrpc/svcsock.h net/sunrpc/sunrpc_syms.c +1 more+38 -30 replies
3/40svc: Change the svc_sock in the rqstp structure to a transportinclude/linux/sunrpc/svc.h+4 -10 replies
4/40svc: 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/40svc: 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/40svc: Add transport specific xpo_release functioninclude/linux/sunrpc/svc.h include/linux/sunrpc/svc_xprt.h net/sunrpc/svcsock.c+11 -90 replies
7/40svc: Add per-transport delete functionsinclude/linux/sunrpc/svc_xprt.h net/sunrpc/svcsock.c+45 -130 replies
8/40svc: Add xpo_prep_reply_hdrinclude/linux/sunrpc/svc_xprt.h net/sunrpc/svc.c net/sunrpc/svcsock.c+21 -30 replies
9/40svc: Add a transport function that checks for write spaceinclude/linux/sunrpc/svc_xprt.h net/sunrpc/svcsock.c+57 -260 replies
10/40svc: Move close processing to a single placenet/sunrpc/svcsock.c+11 -150 replies
11/40svc: Add xpo_accept transport functioninclude/linux/sunrpc/svc_xprt.h include/linux/sunrpc/svcsock.h net/sunrpc/svcsock.c+21 -120 replies
12/40svc: Remove unnecessary call to svc_sock_enqueuenet/sunrpc/svcsock.c+0 -10 replies
13/40svc: Move connection limit checking to its own functionnet/sunrpc/svcsock.c+29 -280 replies
14/40svc: 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
15/40svc: 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
16/40svc: Change sk_inuse to a krefinclude/linux/sunrpc/svc_xprt.h include/linux/sunrpc/svcsock.h net/sunrpc/svc_xprt.c +1 more+87 -760 replies
17/40svc: Move sk_flags to the svc_xprt structureinclude/linux/sunrpc/svc_xprt.h include/linux/sunrpc/svcsock.h net/sunrpc/svcsock.c+88 -880 replies
18/40svc: 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
19/40svc: Make close transport independentfs/lockd/svc.c fs/nfsd/nfssvc.c include/linux/sunrpc/svc_xprt.h +4 more+61 -680 replies
20/40svc: Move sk_reserved to svc_xprtinclude/linux/sunrpc/svc_xprt.h include/linux/sunrpc/svcsock.h net/sunrpc/svcsock.c+6 -70 replies
21/40svc: Make the enqueue service transport neutral and export it.net/sunrpc/svcsock.c+48 -460 replies
22/40svc: 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
23/40svc: Change svc_sock_received to svc_xprt_received and export itinclude/linux/sunrpc/svc_xprt.h net/sunrpc/svcsock.c+25 -230 replies
24/40svc: Move accept call to svc_xprt_received to common codenet/sunrpc/svcsock.c+1 -20 replies
25/40svc: Remove sk_lastrecvinclude/linux/sunrpc/svcsock.h net/sunrpc/svcsock.c+1 -50 replies
26/40svc: 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
27/40svc: Make deferral processing xprt independentinclude/linux/sunrpc/svc.h include/linux/sunrpc/svc_xprt.h include/linux/sunrpc/svcsock.h +2 more+29 -360 replies
28/40svc: 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
29/40svc: Make svc_sock_release svc_xprt_releasenet/sunrpc/svcsock.c+7 -90 replies
30/40svc: Make svc_recv transport neutralnet/sunrpc/svcsock.c+31 -300 replies
31/40svc: Make svc_age_temp_sockets svc_age_temp_transportsnet/sunrpc/svcsock.c+19 -180 replies
32/40svc: Move create logic to common codenet/sunrpc/svc_xprt.c net/sunrpc/svcsock.c+44 -400 replies
33/40svc: Removing remaining references to rq_sock in rqstpinclude/linux/sunrpc/svc.h net/sunrpc/svcsock.c+25 -180 replies
34/40svc: Make svc_check_conn_limits xprt independentnet/sunrpc/svcsock.c+12 -120 replies
35/40svc: 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+804 -8101 reply
36/40svc: Add transport hdr size for defer/revisitinclude/linux/sunrpc/svc.h net/sunrpc/svc_xprt.c net/sunrpc/svcsock.c+31 -90 replies
37/40svc: Add /proc/sys/sunrpc/transport filesinclude/linux/sunrpc/svc_xprt.h net/sunrpc/svc_xprt.c net/sunrpc/sysctl.c+60 -00 replies
38/40svc: Add svc API that queries for a transport instancefs/lockd/svc.c include/linux/sunrpc/svc_xprt.h net/sunrpc/svc_xprt.c+38 -140 replies
39/40knfsd: Support adding transports by writing portlist filefs/nfsd/nfsctl.c net/sunrpc/svc_xprt.c+48 -10 replies
40/40svc: 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 -10 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/40] svc: SVC Transport Switch

The Server Side Transport switch implements a pluggable transport provider layer for RPC servers. This 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 is functionally equivalent to the preceding patchset and includes the following improvements:

- Fixed a bug in svc_create_socket that resulted in svc_xprt_received being called without holding the XPT_BUSY bit.

- Added a BUG_ON in svc_xprt_received to catch providers calling svc_xprt_received without holding the XPT_BUSY bit.

- Removed code setting the XPT_BUSY bit in the create path and moved this logic to common code.

- Cleaned up the SMP locking strategy comment and moved it to svc_xprt.c

- Changed return type of svc_unreg_xprt_class to void

- Simplified transport class removal logic

- Fixed a white-space abuse issue

- Made some style changes to the patch comments

- Created a separate patch that moves the connection limit code to generic logic

- Created a separate patch that moves the call to svc_xprt_received out of tcp_accept and into common logic

- Created a separate patch for removal of unnecessary call to svc_sock_enqueue in svc_tcp_accept function

- Removed silly BUG_ON from kref svc_xprt_free callback function

- Moved unlock of svc_xprt_class list to after the try_module_lock call.

- Refactored svc_create_xprt logic

- Removed unnecessary call to svc_find_xprt in portlist code

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