[openib-general] [PATCH] [SRP] 5/5 per device communication identifiers

Sean Hefty sean.hefty at intel.com
Thu Sep 15 10:53:31 PDT 2005


Patch to update SRP to per device cm_id's.

I don't have an SRP target to test this against, but changes appear
straightforward.

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


Index: linux-kernel/infiniband/ulp/srp/ib_srp.c
===================================================================
--- linux-kernel/infiniband/ulp/srp/ib_srp.c	(revision 3450)
+++ linux-kernel/infiniband/ulp/srp/ib_srp.c	(working copy)
@@ -449,7 +449,8 @@ static int srp_reconnect_target(struct s
 
 	srp_disconnect_target(target);
 
-	target->cm_id = ib_create_cm_id(srp_cm_handler, target);
+	target->cm_id = ib_create_cm_id(target->qp->device, srp_cm_handler,
+					target);
 	if (IS_ERR(target->cm_id)) {
 		ret = PTR_ERR(target->cm_id);
 		target->cm_id = NULL;
@@ -1397,7 +1398,7 @@ static ssize_t srp_create_target(struct 
 	if (ret)
 		goto err;
 
-	target->cm_id = ib_create_cm_id(srp_cm_handler, target);
+	target->cm_id = ib_create_cm_id(host->dev, srp_cm_handler, target);
 	if (IS_ERR(target->cm_id)) {
 		ret = PTR_ERR(target->cm_id);
 		goto err;






More information about the general mailing list