From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Tucker Subject: [RFC,PATCH 7/15] knfsd: create RDMA transport in nfssvc Date: Fri, 18 May 2007 12:45:31 -0500 Message-ID: <1179510331.23385.120.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-mx1-b.sourceforge.net ([10.3.1.91] helo=mail.sourceforge.net) by sc8-sf-list2-new.sourceforge.net with esmtp (Exim 4.43) id 1Hp6WE-0000tw-0N for nfs@lists.sourceforge.net; Fri, 18 May 2007 10:45:34 -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 1Hp6WG-0006m6-Lp for nfs@lists.sourceforge.net; Fri, 18 May 2007 10:45:36 -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 the svc_makesock routine to create the RDMA transport. I think this should somehow be linked to the transport switch and the port mapper. Signed-off-by: Tom Tucker --- fs/nfsd/nfssvc.c | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/fs/nfsd/nfssvc.c b/fs/nfsd/nfssvc.c index d7759ce..4a7982e 100644 --- a/fs/nfsd/nfssvc.c +++ b/fs/nfsd/nfssvc.c @@ -254,6 +254,17 @@ #ifdef CONFIG_NFSD_TCP if (error < 0) return error; #endif +#ifdef CONFIG_NFSD_RDMA + /* KLUDGE: The rpc.nfsd utility passes down the + * port number when it opens the nfsd file. We are + * going to ignore it here and force the RDMA port number + * to 2050. This will allow the TCP transport to coexist + * with the RDMA transport. + */ + error = svc_makesock(nfsd_serv, IPPROTO_MAX, 2050 /* port */, 0); + if (error < 0) + return error; +#endif return 0; } ------------------------------------------------------------------------- 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