[openib-general] [PATCH] [SDP] Updated to new CM API

Sean Hefty mshefty at ichips.intel.com
Tue Mar 8 16:08:48 PST 2005


Libor,

Here's a patch that updates SDP to the new CM API.  I didn't actually
test this though.  (I did test the CM changes, just not SDP.)

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


Index: infiniband/ulp/sdp/sdp_actv.c
===================================================================
--- infiniband/ulp/sdp/sdp_actv.c	(revision 1964)
+++ infiniband/ulp/sdp/sdp_actv.c	(working copy)
@@ -472,9 +472,11 @@ static void sdp_cm_path_complete(u64 id,
 	/*
 	 * set QP/CM parameters.
 	 */
-	memset(&param, 0, sizeof(struct ib_cm_req_param));
+	memset(&param, 0, sizeof param);
 
-	param.qp               = conn->qp;
+	param.qp_num           = conn->qp->qp_num;
+	param.qp_type	       = conn->qp->qp_type;
+	param.srq	       = (conn->qp->srq != NULL);
 	param.primary_path     = path;
 	param.alternate_path   = NULL;
 	param.service_id       = cpu_to_be64(SDP_PORT_TO_SID(conn->dst_port));
Index: infiniband/ulp/sdp/sdp_pass.c
===================================================================
--- infiniband/ulp/sdp/sdp_pass.c	(revision 1964)
+++ infiniband/ulp/sdp/sdp_pass.c	(working copy)
@@ -263,7 +263,8 @@ static int sdp_cm_accept(struct sdp_opt 
 	/*
 	 * send REP message to remote CM to continue connection.
 	 */
-	param.qp                  = conn->qp;
+	param.qp_num              = conn->qp->qp_num;
+	param.srq		  = (conn->qp->srq != NULL);
 	param.starting_psn        = conn->rq_psn;
 	param.private_data        = hello_ack;
 	/*



More information about the general mailing list