RFC svc: Server Side Transport Switch
Get series with b4
b4 am [email protected]Versions newest first
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/20 | svc: Add svc_xprt transport switch structureinclude/ net/ | +23 | 0 replies | |
| 2/20 | svc: xpt_detach and xpt_freeinclude/ net/ | +53 | 2 replies | |
| 3/20 | svc: xpt_prep_reply_hdrinclude/ net/ net/ | +24 | 2 replies | |
| 5/20 | svc: xpt_max_payloadinclude/ net/ net/ | +10 | 2 replies | |
| 6/20 | svc: export svc_sock_enqueue, svc_sock_receivedinclude/ net/ | +6 | 2 replies | |
| 7/20 | svc: centralise close handlingnet/ | +13 | 1 reply | |
| 8/20 | svc: centralise accept handlinginclude/ net/ | +15 | 2 replies | |
| 9/20 | svc: Add SK_LISTENER flaginclude/ net/ | +3 | 1 reply | |
| 10/20 | svc: Add generic refcount servicesinclude/ net/ | +29 | 2 replies | |
| 11/20 | svc: cleanup svc_sock initializationinclude/ net/ | +103 | 1 reply | |
| 13/20 | svc: Add svc_[un]register_transportinclude/ net/ | +56 | 2 replies | |
| 14/20 | svc: Register TCP/UDP Transportsnet/ net/ | +10 | 0 replies | |
| 15/20 | svc: transport file implementationinclude/ net/ net/ | +68 | 2 replies | |
| 16/20 | svc: xpt_create_svcinclude/ net/ | +65 | 2 replies | |
| 17/20 | svc: Add xpt_get_name serviceinclude/ net/ | +13 | 0 replies | |
| 18/20 | svc: Add xpt_defer transport functioninclude/ net/ | +8 | 2 replies | |
| 19/20 | knfsd: call svc_create_svcsockfs/ | +4 | 0 replies | |
| 20/20 | knfsd: create listener via portlist writefs/ | +17 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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