Roland Dreier wrote:
The API I came up with is the following:

        /**
         * ibv_ack_cq_events - Free an async event
         * @cq: CQ to acknowledge events for
         * @nevents: Number of events to acknowledge.
         *
         * All completion events which are returned by ibv_get_cq_event() must
         * be acknowledged.  ibv_destroy_cq() will wait for all completion
         * events to be acknowledged, so there should be a one-to-one
         * correspondence between acks and successful gets.  An application
         * may accumulate multiple completion events and acknowledge them in a
         * single call by passing the number of events to ack in @nevents.
         */
        extern void ibv_ack_cq_events(struct ibv_cq *cq, unsigned int nevents);

(I also renamed ibv_put_async_event() to ibv_ack_async_event() for
symmetry)

I think that this would work well.  I will update the uCM put event to match.

- Sean
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to