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
..
2009-02-06 22:07:41 -08:00
2009-03-03 23:48:50 -08:00
2009-03-04 23:46:25 -08:00
2008-12-08 01:14:16 -08:00
2009-01-07 17:23:17 -08:00
2009-02-09 15:07:18 -08:00
2009-03-04 23:46:25 -08:00
2009-01-04 17:29:21 -08:00
2009-01-11 00:17:22 -08:00
2008-12-10 15:18:31 -08:00
2009-01-06 16:45:26 -08:00
2008-11-03 18:21:05 -08:00
2009-01-06 10:44:34 -08:00
2009-01-25 20:49:14 -08:00
2009-01-11 00:06:33 -08:00
2008-11-03 18:21:05 -08:00
2008-11-19 18:49:57 -08:00