SUNRPC: use sockaddr + size when creating remote transport endpoints
authorChuck Lever <chuck.lever@oracle.com>
Wed, 23 Aug 2006 00:06:20 +0000 (20:06 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sat, 23 Sep 2006 03:24:49 +0000 (23:24 -0400)
commitc2866763b4029411d166040306691773c12d4caf
tree5b16b3a293843062234c5eaf377da2af93365266
parent6ca948238724c945bd353f51d54ae7d285f3889f
SUNRPC: use sockaddr + size when creating remote transport endpoints

Prepare for more generic transport endpoint handling needed by transports
that might use different forms of addressing, such as IPv6.

Introduce a single function call to replace the two-call
xprt_create_proto/rpc_create_client API.  Define a new rpc_create_args
structure that allows callers to pass in remote endpoint addresses of
varying length.

Test-plan:
Compile kernel with CONFIG_NFS enabled.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
include/linux/sunrpc/clnt.h
include/linux/sunrpc/xprt.h
net/sunrpc/clnt.c
net/sunrpc/xprt.c