[openib-general] design for communication established affiliated asynchronous event handling

Michael S. Tsirkin mst at mellanox.co.il
Wed Jun 28 22:45:24 PDT 2006


Quoting r. Roland Dreier <rdreier at cisco.com>:
> Subject: Re: design for communication established affiliated asynchronous event handling
> 
> >I suggest the following design: the CMA would replace the event handler
> >provided with the qp_init_attr struct with a callback of its own and
> >keep the original handler/context on a private structure.
> 
> This is probably fine.  There is one further situation where the
> connection needs to be established, beyond RTU and the communication
> established async event.  Namely, if a receive completion is polled.
> Since async events are, well, asynchronous, there's no guarantee that
> the communication established event will be reported any time soon...

How about user taking this into account and not arming the CQ /
not polling it until the established event?

-- 
MST




More information about the general mailing list