[ofw] [IPoIB CM] patch makes proprity for remotely initiated connection.
Alex Estrin
alex.estrin at qlogic.com
Tue Jan 20 08:24:37 PST 2009
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 )
More information about the ofw
mailing list