[openib-general] [PATCH] [CM] 6/6 update cmpost to use per device cm_id's

Sean Hefty sean.hefty at intel.com
Tue Sep 6 17:00:46 PDT 2005


Patch updates kernel cmpost test utility to updated ib_create_cm_id() API.

Signed-off-by: Sean Hefty <sean.hefty at intel.com>


Index: cmpost/cmpost.c
===================================================================
--- cmpost/cmpost.c	(revision 3327)
+++ cmpost/cmpost.c	(working copy)
@@ -408,7 +408,7 @@ static int init_node(struct cmtest_node 
 	int cqe, ret;
 
 	if (!is_server) {
-		node->cm_id = ib_create_cm_id(cm_handler, node);
+		node->cm_id = ib_create_cm_id(test.device, cm_handler, node);
 		if (IS_ERR(node->cm_id)) {
 			ret = PTR_ERR(node->cm_id);
 			printk("cmpost: failed to create cm_id: %d\n", ret);
@@ -634,7 +634,7 @@ static void run_server(void)
 	int i, ret;
 
 	printk("cmpost: starting server\n");
-	listen_id = ib_create_cm_id(cm_handler, &test);
+	listen_id = ib_create_cm_id(test.device, cm_handler, &test);
 	if (IS_ERR(listen_id)) {
 		ret = PTR_ERR(listen_id);
 		printk("cmpost: listen request failed: %d\n", ret);






More information about the general mailing list