2007-07-11 21:09:36

by Talpey, Thomas

[permalink] [raw]
Subject: [RFC Patch 04/09] NFS/RDMA client - transport switch protocol wildcarding

SUNRPC: allow transport switch registrations to wildcard their protocol

Some RPC transports don't have any notion of "protocol", such as RDMA.
This patch allows a zero protocol to be a wildcard when creating new
transport endpoints.

Signed-off-by: Tom Talpey <[email protected]>

---

net/sunrpc/xprt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6.22/net/sunrpc/xprt.c
===================================================================
--- linux-2.6.22.orig/net/sunrpc/xprt.c
+++ linux-2.6.22/net/sunrpc/xprt.c
@@ -990,7 +990,7 @@ struct rpc_xprt *xprt_create_transport(i
spin_lock(&xprt_list_lock);
list_for_each_entry(t, &xprt_list, list) {
if ((t->family == ap->sa_family) &&
- (t->protocol == proto)) {
+ (t->protocol == 0 || t->protocol == proto)) {
spin_unlock(&xprt_list_lock);
goto found;
}


-------------------------------------------------------------------------
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 - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs