From: Tom Tucker Subject: [RFC, PATCH 5/15] knfsd: support RDMA transport in svc_create_socket. Date: Fri, 18 May 2007 12:45:17 -0500 Message-ID: <1179510317.23385.118.camel@trinity.ogc.int> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: Neil Brown , Tom Talpey , Peter Leckie , Greg Banks To: Linux NFS Mailing List Return-path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list2-new.sourceforge.net with esmtp (Exim 4.43) id 1Hp6W0-0000ss-SH for nfs@lists.sourceforge.net; Fri, 18 May 2007 10:45:21 -0700 Received: from rrcs-71-42-183-126.sw.biz.rr.com ([71.42.183.126] helo=smtp.opengridcomputing.com) by mail.sourceforge.net with esmtp (Exim 4.44) id 1Hp6W3-00088f-Gg for nfs@lists.sourceforge.net; Fri, 18 May 2007 10:45:23 -0700 List-Id: "Discussion of NFS under Linux development, interoperability, and testing." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nfs-bounces@lists.sourceforge.net Errors-To: nfs-bounces@lists.sourceforge.net Adds a call to create RDMA transports to svc_create_socket. Currently, we use IPPROTO_MAX, which is a work-around. The transport switch should ultimately provide transport types that are advertised by the transport drivers. Signed-off-by: Tom Tucker --- net/sunrpc/svcsock.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/net/sunrpc/svcsock.c b/net/sunrpc/svcsock.c index b78e84b..9c2f8ee 100644 --- a/net/sunrpc/svcsock.c +++ b/net/sunrpc/svcsock.c @@ -46,6 +46,9 @@ #include #include #include #include +#ifdef CONFIG_NFSD_RDMA +#include +#endif /* SMP locking strategy: * @@ -1805,6 +1808,11 @@ static int svc_create_socket(struct svc_ serv->sv_program->pg_name, protocol, __svc_print_addr(sin, buf, sizeof(buf))); +#ifdef CONFIG_NFSD_RDMA + if (protocol == IPPROTO_MAX) + return svc_rdma_create_listen(serv, protocol, + (struct sockaddr*)sin); +#endif if (protocol != IPPROTO_UDP && protocol != IPPROTO_TCP) { printk(KERN_WARNING "svc: only UDP and TCP " "sockets supported\n"); ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs