From patchwork Sat Apr 3 13:27:29 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tucker X-Patchwork-Id: 90535 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o33DReOn022657 for ; Sat, 3 Apr 2010 13:27:40 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752090Ab0DCN1b (ORCPT ); Sat, 3 Apr 2010 09:27:31 -0400 Received: from smtp.opengridcomputing.com ([209.198.142.2]:34485 "EHLO smtp.opengridcomputing.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751868Ab0DCN1b (ORCPT ); Sat, 3 Apr 2010 09:27:31 -0400 Received: from [10.10.0.76] (darkroom.ogc.int [10.10.0.76]) by smtp.opengridcomputing.com (Postfix) with ESMTP id 080F57C7C0; Sat, 3 Apr 2010 08:27:29 -0500 (CDT) Message-ID: <4BB74241.4060308@ogc.us> Date: Sat, 03 Apr 2010 08:27:29 -0500 From: Tom Tucker User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: "J. Bruce Fields" CC: Chuck Lever , Steve Wise , "linux-nfs@vger.kernel.org" , linux-rdma@vger.kernel.org Subject: [PATCH] svcrdma: RDMA support not yet compatible with RPC6 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Sat, 03 Apr 2010 13:27:41 +0000 (UTC) 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);