OpenCloudOS-Kernel/include/linux/sunrpc
Chuck Lever 4b62e58ccc SUNRPC: Pass a family argument to svc_register()
The sv_family field is going away.  Instead of using sv_family, have
the svc_register() function take a protocol family argument.

Since this argument represents a protocol family, and not an address
family, this argument takes an int, as this is what is passed to
sock_create_kern().  Also make sure svc_register's helpers are
checking for PF_FOO instead of AF_FOO.  The value of [AP]F_FOO are
equivalent; this is simply a symbolic change to reflect the semantics
of the value stored in that variable.

sock_create_kern() should return EPFNOSUPPORT if the passed-in
protocol family isn't supported, but it uses EAFNOSUPPORT for this
case.  We will stick with that tradition here, as svc_register()
is called by the RPC server in the same path as sock_create_kern().

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
2009-03-28 15:54:12 -04:00
..
Kbuild
auth.h
auth_gss.h net: remove CVS keywords 2008-06-11 21:00:38 -07:00
cache.h
clnt.h rpc: pass target name down to rpc level on callbacks 2008-12-23 16:17:40 -05:00
debug.h
gss_api.h net: remove CVS keywords 2008-06-11 21:00:38 -07:00
gss_asn1.h
gss_err.h
gss_krb5.h gss_krb5: create a define for token header size and clean up ptr location 2008-06-23 13:47:25 -04:00
gss_spkm3.h
metrics.h
msg_prot.h
rpc_pipe_fs.h rpc: add an rpc_pipe_open method 2008-12-23 16:08:32 -05:00
rpc_rdma.h
sched.h rpc: minor cleanup of scheduler callback code 2008-07-09 12:09:14 -04:00
stats.h
svc.h SUNRPC: Pass a family argument to svc_register() 2009-03-28 15:54:12 -04:00
svc_rdma.h svcrdma: Modify the RPC recv path to use FRMR when available 2008-10-06 14:46:01 -05:00
svc_xprt.h SUNRPC: Clean up svc_find_xprt() calling sequence 2009-03-28 15:53:57 -04:00
svcauth.h
svcauth_gss.h nfsd: pass client principal name in rsc downcall 2008-12-23 16:17:15 -05:00
svcsock.h NLM: Remove unused argument from svc_addsock() function 2008-10-04 17:12:27 -04:00
timer.h
types.h
xdr.h SUNRPC: Remove the last remnant of the BKL... 2008-12-23 15:21:31 -05:00
xprt.h SUNRPC: Add the equivalent of the linger and linger2 timeouts to RPC sockets 2009-03-19 15:17:34 -04:00
xprtrdma.h RPC/RDMA: harden connection logic against missing/late rdma_cm upcalls. 2008-10-10 15:13:31 -04:00
xprtsock.h