[ofw] [RFC] [2/2] ib cm: export CM only interface

Fab Tillier ftillier at windows.microsoft.com
Mon Nov 17 23:34:26 PST 2008


> @@ -5078,11 +5061,11 @@
>                 return IB_INVALID_HANDLE;
>         }
>  -       status = __al_cep_pre_rep( p_cep, context, p_cm_rep, p_init );
> +       status = __al_cep_pre_rep( p_cep, context, p_cm_rep, qpn, p_init
> + );
>
>         if( status == IB_SUCCESS )
>         {
> -               p_cep->pfn_cb = pfn_cb;
> +               p_cep->pfn_cb = pfn_cb ? pfn_cb : p_cep->pfn_cb;

This makes it impossible for a client to clear the callback of a CEP created in response to a REQ received on a callback-driven listening CEP.  I think if you want to leave the value unchanged you should have a special value reserved - NULL is a valid callback pointer for the CEP.

>                 p_cep->pfn_destroy_cb = pfn_destroy_cb;
>                 *p_cid = cid;
>         }



More information about the ofw mailing list