SUNRPC: Change svc_create_xprt() to take a @family argument
The sv_family field is going away. Pass a protocol family argument to svc_create_xprt() instead of extracting the family from the passed-in svc_serv struct. Again, as this is a listener socket and not an address, we make this new argument an "int" protocol family, instead of an "sa_family_t." Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
committed by
Trond Myklebust
parent
baf01caf09
commit
9652ada3fb
@@ -211,7 +211,8 @@ static int create_lockd_listener(struct svc_serv *serv, char *name,
|
||||
|
||||
xprt = svc_find_xprt(serv, name, 0, 0);
|
||||
if (xprt == NULL)
|
||||
return svc_create_xprt(serv, name, port, SVC_SOCK_DEFAULTS);
|
||||
return svc_create_xprt(serv, name, nlmsvc_family,
|
||||
port, SVC_SOCK_DEFAULTS);
|
||||
|
||||
svc_xprt_put(xprt);
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user