[openib-general] [RFC/PATCH] librdmacm: modify multicast code for RDMA_PS_IPOIB port space

Or Gerlitz ogerlitz at voltaire.com
Tue Jan 23 07:46:23 PST 2007


Sean,

with one host being both the client and the server, mckey does not work for me even without the
IPOIB PS changes, it used to work between two hosts with the below patch that forces the sender
to generate and poll completions on its TX packets.

please let me know how its going with mckey on your system, i am going to
test the librdmacm patches i have just sent with our mcast app.

Or.

Index: librdmacm/examples/mckey.c
===================================================================
--- librdmacm.orig/examples/mckey.c	2007-01-23 16:24:19.000000000 +0200
+++ librdmacm/examples/mckey.c	2007-01-23 16:50:13.000000000 +0200
@@ -452,10 +453,14 @@ static int run(void)
 		if (is_sender) {
 			printf("initiating data transfers\n");
 			for (i = 0; i < connections; i++) {
-				ret = post_sends(&test.nodes[i], 0);
+				ret = post_sends(&test.nodes[i], IBV_SEND_SIGNALED);
 				if (ret)
 					goto out;
-			}
+			}
+			printf("polling data transfers completion\n");
+			ret = poll_cqs();
+			if (ret)
+				goto out;
 		} else {
 			printf("receiving data transfers\n");
 			ret = poll_cqs();





More information about the general mailing list