[openib-general] cm-id->context should be NULL for IB_CM_REQ_RECEIVED ?

Jeff Carr jcarr at linuxmachines.com
Mon Jun 13 14:51:57 PDT 2005


On 06/13/05 14:12, Roland Dreier wrote:
>     Jeff> On the recieving end of a request, when the handler gets
>     Jeff> called and the cm-id gets passed to your handler (aka when
>     Jeff> the handler gets IB_CM_REQ_RECEIVED) it seems cm-id->context
>     Jeff> isn't null. Is there some useful data in there? If not, I
>     Jeff> think it makes more sense (and makes code easier to write to
>     Jeff> use the cm handler) if the context is set to NULL.
> 
> I think the context gets populated from the context of the
> corresponding cm_id that was passed to ib_cm_listen().

OK, thanks. I checked and it does look like that is what is happening. 
I'll set the context for the cm_id I pass into ib_cm_listen to null. 
Assuming of course, that the cm_id context for that one doesn't matter.

Jeff



More information about the general mailing list