[ofw] RE: [IPoIB CM] patch makes priority for remotely initiated connection.
Alex Estrin
alex.estrin at qlogic.com
Fri Jan 23 14:44:38 PST 2009
Applied to ipoib_cm branch rev 1872.
Thanks,
Alex.
> -----Original Message-----
> From: ofw-bounces at lists.openfabrics.org
> [mailto:ofw-bounces at lists.openfabrics.org] On Behalf Of Alex Estrin
> Sent: Tuesday, January 20, 2009 11:25 AM
> To: ofw at lists.openfabrics.org
> Subject: [ofw] [IPoIB CM] patch makes proprity for remotely
> initiated connection.
>
> Linux ipoib cm always initiates connect request and prefer to
> use correlated RC QP.
> Proposed patch will always use remotely initiated connection
> path (if any) to prevent possible race.
> Please review.
>
> Thanks,
> Alex.
>
> Index: kernel/ipoib_cm.c
> ===================================================================
> --- kernel/ipoib_cm.c (revision 1856)
> +++ kernel/ipoib_cm.c (working copy)
> @@ -666,9 +666,9 @@
> IPOIB_PRINT( TRACE_LEVEL_INFORMATION, IPOIB_DBG_INIT,
> ("Endpoint [ %p ] CONNECT ACCEPTED\n", p_endpt ) );
>
> - InterlockedCompareExchangePointer(
> + InterlockedExchangePointer(
> (void *)&p_endpt->conn.h_work_qp,
> - p_endpt->conn.h_recv_qp, (void *)NULL );
> + p_endpt->conn.h_recv_qp );
>
> cl_obj_lock( &p_port->obj );
> if( endpt_cm_set_state( p_endpt, IPOIB_CM_CONNECTED )
> != IPOIB_CM_CONNECTED )
>
> _______________________________________________
> ofw mailing list
> ofw at lists.openfabrics.org
> http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw
>
More information about the ofw
mailing list