[ofw] RE: [IPoIB CM] patch makes proprity for remotely initiated connection.

Fab Tillier ftillier at windows.microsoft.com
Tue Jan 20 09:08:44 PST 2009


> 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 );

What happens to the original QP (h_work_qp)?  Is it tracked elsewhere and freed?

>
>         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