public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] svcrdma: RDMA support not yet compatible with RPC6
@ 2010-04-03 13:27 Tom Tucker
  2010-04-05 14:55 ` Chuck Lever
  0 siblings, 1 reply; 8+ messages in thread
From: Tom Tucker @ 2010-04-03 13:27 UTC (permalink / raw)
  To: J. Bruce Fields
  Cc: Chuck Lever, Steve Wise, linux-nfs@vger.kernel.org, linux-rdma

RPC6 requires that it be possible to create endpoints that listen
exclusively for IPv4 or IPv6 connection requests. This is not currently
supported by the RDMA API.

Signed-off-by: Tom Tucker<tom@opengridcomputing.com>
Tested-by: Steve Wise<swise@opengridcomputing.com>
---

  net/sunrpc/xprtrdma/svc_rdma_transport.c |    5 ++++-
  1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/net/sunrpc/xprtrdma/svc_rdma_transport.c b/net/sunrpc/xprtrdma/svc_rdma_transport.c
index 3fa5751..4e6bbf9 100644
--- a/net/sunrpc/xprtrdma/svc_rdma_transport.c
+++ b/net/sunrpc/xprtrdma/svc_rdma_transport.c
@@ -678,7 +678,10 @@ static struct svc_xprt *svc_rdma_create(struct svc_serv *serv,
  	int ret;

  	dprintk("svcrdma: Creating RDMA socket\n");
-
+	if (sa->sa_family != AF_INET) {
+		dprintk("svcrdma: Address family %d is not supported.\n", sa->sa_family);
+		return ERR_PTR(-EAFNOSUPPORT);
+	}
  	cma_xprt = rdma_create_xprt(serv, 1);
  	if (!cma_xprt)
  		return ERR_PTR(-ENOMEM);


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-04-05 16:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-03 13:27 [PATCH] svcrdma: RDMA support not yet compatible with RPC6 Tom Tucker
2010-04-05 14:55 ` Chuck Lever
2010-04-05 15:48   ` J. Bruce Fields
2010-04-05 15:49     ` Chuck Lever
2010-04-05 15:50     ` Tom Tucker
2010-04-05 16:16       ` J. Bruce Fields
2010-04-05 16:20         ` J. Bruce Fields
2010-04-05 16:19           ` Tom Tucker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox