sunrpc: Add net to xprt_create
Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
Родитель
c653ce3f0a
Коммит
9a23e332ec
|
@ -249,6 +249,7 @@ static inline int bc_prealloc(struct rpc_rqst *req)
|
|||
|
||||
struct xprt_create {
|
||||
int ident; /* XPRT_TRANSPORT identifier */
|
||||
struct net * net;
|
||||
struct sockaddr * srcaddr; /* optional local address */
|
||||
struct sockaddr * dstaddr; /* remote peer address */
|
||||
size_t addrlen;
|
||||
|
|
|
@ -284,6 +284,7 @@ struct rpc_clnt *rpc_create(struct rpc_create_args *args)
|
|||
struct rpc_xprt *xprt;
|
||||
struct rpc_clnt *clnt;
|
||||
struct xprt_create xprtargs = {
|
||||
.net = args->net,
|
||||
.ident = args->protocol,
|
||||
.srcaddr = args->saddress,
|
||||
.dstaddr = args->address,
|
||||
|
|
Загрузка…
Ссылка в новой задаче