Skip to content

RFC svc: Server Side Transport Switch

Tom Tucker linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest18 of 20 patches 39 repliesIn review

18 of 20 patches are in this archive. The cover letter announces 20.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/20svc: Add svc_xprt transport switch structureinclude/linux/sunrpc/svcsock.h net/sunrpc/svcsock.c+23 -80 replies
2/20svc: xpt_detach and xpt_freeinclude/linux/sunrpc/svcsock.h net/sunrpc/svcsock.c+53 -92 replies
3/20svc: xpt_prep_reply_hdrinclude/linux/sunrpc/svcsock.h net/sunrpc/svc.c net/sunrpc/svcsock.c+24 -32 replies
5/20svc: xpt_max_payloadinclude/linux/sunrpc/svcsock.h net/sunrpc/svc.c net/sunrpc/svcsock.c+10 -32 replies
6/20svc: export svc_sock_enqueue, svc_sock_receivedinclude/linux/sunrpc/svcsock.h net/sunrpc/svcsock.c+6 -32 replies
7/20svc: centralise close handlingnet/sunrpc/svcsock.c+13 -151 reply
8/20svc: centralise accept handlinginclude/linux/sunrpc/svcsock.h net/sunrpc/svcsock.c+15 -132 replies
9/20svc: Add SK_LISTENER flaginclude/linux/sunrpc/svcsock.h net/sunrpc/svcsock.c+3 -11 reply
10/20svc: Add generic refcount servicesinclude/linux/sunrpc/svcsock.h net/sunrpc/svcsock.c+29 -152 replies
11/20svc: cleanup svc_sock initializationinclude/linux/sunrpc/svcsock.h net/sunrpc/svcsock.c+103 -501 reply
13/20svc: Add svc_[un]register_transportinclude/linux/sunrpc/svcsock.h net/sunrpc/svcsock.c+56 -02 replies
14/20svc: Register TCP/UDP Transportsnet/sunrpc/sunrpc_syms.c net/sunrpc/svcsock.c+10 -20 replies
15/20svc: transport file implementationinclude/linux/sunrpc/debug.h net/sunrpc/svcsock.c net/sunrpc/sysctl.c+68 -12 replies
16/20svc: xpt_create_svcinclude/linux/sunrpc/svcsock.h net/sunrpc/svcsock.c+65 -52 replies
17/20svc: Add xpt_get_name serviceinclude/linux/sunrpc/svcsock.h net/sunrpc/svcsock.c+13 -50 replies
18/20svc: Add xpt_defer transport functioninclude/linux/sunrpc/svcsock.h net/sunrpc/svcsock.c+8 -22 replies
19/20knfsd: call svc_create_svcsockfs/nfsd/nfssvc.c+4 -40 replies
20/20knfsd: create listener via portlist writefs/nfsd/nfsctl.c+17 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC,PATCH 00/20] svc: Server Side Transport Switch

This patchset represents an update to the previously published version. The most significant changes are a renaming of the transport switch data structures and functions based on a recommendation from Chuck Lever. Code cleanup was also done in the portlist implementation based on feedback from Trond. Additionally, the synopsis for the register/unregister services were changed to return errors and module reference counting was added.

I've included the original description below for new reviewers.

This patchset implements a sunrpc server side pluggable transport switch that supports dynamically registered transports.

The knfsd daemon has been modified to allow user-mode programs to add a new listening endpoint by writing a string to the portlist file. The format of the string is as follows:

<transport-name> <port>

For example,

# echo rdma 2050 > /proc/fs/nfsd/portlist

Will cause the knfsd daemon to attempt to add a listening endpoint on port 2050 using the 'rdma' transport.

Transports register themselves with the transport switch using a new API that has the following synopsis:

int svc_register_transport(struct svc_sock_ops *xprt)

The text transport name is contained in a field in the xprt structure. A new service has been added as well to take a transport name instead of an IP protocol number to specify the transport on which the listening endpoint is to be created. This function is defined as follows:

int svc_create_svcsock(struct svc_serv, char *transport_name,

                       unsigned short port, int flags);

The existing svc_makesock interface was left to avoid impacts to existing servers. It has been modified to map IP protocol numbers to transport strings.

Signature · 10 lines
Signed-off-by: Tom Tucker <[email protected]>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
NFS maillist  -  [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs