linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC,PATCH 7/15] knfsd: create RDMA transport in nfssvc
@ 2007-05-18 17:45 Tom Tucker
  2007-05-21  7:04 ` Neil Brown
  0 siblings, 1 reply; 6+ messages in thread
From: Tom Tucker @ 2007-05-18 17:45 UTC (permalink / raw)
  To: Linux NFS Mailing List; +Cc: Neil Brown, Tom Talpey, Peter Leckie, Greg Banks

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 <tom@opengridcomputing.com>
---

 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

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

end of thread, other threads:[~2007-05-23 15:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-18 17:45 [RFC,PATCH 7/15] knfsd: create RDMA transport in nfssvc Tom Tucker
2007-05-21  7:04 ` Neil Brown
2007-05-21 15:49   ` Tom Tucker
2007-05-22  6:21     ` Neil Brown
2007-05-22 15:59       ` Tom Tucker
2007-05-23 15:00         ` Talpey, Thomas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).