[openib-general] Re: [PATCH][uDAPL] use IBAT ATS

Arlin Davis ardavis at ichips.intel.com
Wed Sep 14 10:19:23 PDT 2005


James Lentini wrote:

>Hi Arlin,
>
>I'd like to checkin the following patch (also attached) to uDAPL. 
>Please let me know if you see any issues.
>  
>
Look fine to me.

>james
>
>Index: dapl/openib/dapl_ib_cm.c
>===================================================================
>--- dapl/openib/dapl_ib_cm.c	(revision 3408)
>+++ dapl/openib/dapl_ib_cm.c	(working copy)
>@@ -207,7 +207,8 @@ static void dapli_rt_comp_handler(uint64
> 		}
> 
> 		status = ib_at_route_by_ip(((struct sockaddr_in *)&conn->r_addr)->sin_addr.s_addr,
>-					   0, 0, 0, &conn->dapl_rt, 
>+					   0, 0, IB_AT_ROUTE_FORCE_ATS, 
>+					   &conn->dapl_rt, 
> 					   &conn->dapl_comp,&conn->dapl_comp.req_id);
> 		if (status < 0) {
> 			dapl_dbg_log(DAPL_DBG_TYPE_ERR, "dapl_rt_comp_handler: "
>@@ -607,7 +608,8 @@ dapls_ib_connect (
> 	status = ib_at_route_by_ip(
> 		((struct sockaddr_in *)&conn->r_addr)->sin_addr.s_addr, 
> 		((struct sockaddr_in *)&conn->hca->hca_address)->sin_addr.s_addr, 
>-		0, 0, &conn->dapl_rt, &conn->dapl_comp, &conn->dapl_comp.req_id);
>+		0, IB_AT_ROUTE_FORCE_ATS, &conn->dapl_rt, &conn->dapl_comp, 
>+		&conn->dapl_comp.req_id);
> 
> 	dapl_dbg_log(DAPL_DBG_TYPE_CM, " connect: at_route ret=%d,%s req_id %d GID %016llx %016llx\n", 
> 		     status, strerror(errno), conn->dapl_comp.req_id,
>
>------------------------------------------------------------------------
>
>Index: dapl/openib/dapl_ib_cm.c
>===================================================================
>--- dapl/openib/dapl_ib_cm.c	(revision 3408)
>+++ dapl/openib/dapl_ib_cm.c	(working copy)
>@@ -207,7 +207,8 @@ static void dapli_rt_comp_handler(uint64
> 		}
> 
> 		status = ib_at_route_by_ip(((struct sockaddr_in *)&conn->r_addr)->sin_addr.s_addr,
>-					   0, 0, 0, &conn->dapl_rt, 
>+					   0, 0, IB_AT_ROUTE_FORCE_ATS, 
>+					   &conn->dapl_rt, 
> 					   &conn->dapl_comp,&conn->dapl_comp.req_id);
> 		if (status < 0) {
> 			dapl_dbg_log(DAPL_DBG_TYPE_ERR, "dapl_rt_comp_handler: "
>@@ -607,7 +608,8 @@ dapls_ib_connect (
> 	status = ib_at_route_by_ip(
> 		((struct sockaddr_in *)&conn->r_addr)->sin_addr.s_addr, 
> 		((struct sockaddr_in *)&conn->hca->hca_address)->sin_addr.s_addr, 
>-		0, 0, &conn->dapl_rt, &conn->dapl_comp, &conn->dapl_comp.req_id);
>+		0, IB_AT_ROUTE_FORCE_ATS, &conn->dapl_rt, &conn->dapl_comp, 
>+		&conn->dapl_comp.req_id);
> 
> 	dapl_dbg_log(DAPL_DBG_TYPE_CM, " connect: at_route ret=%d,%s req_id %d GID %016llx %016llx\n", 
> 		     status, strerror(errno), conn->dapl_comp.req_id,
>  
>




More information about the general mailing list