[ewg] how to delete the processed cq from cq channel?

Roland Dreier rdreier at cisco.com
Tue Mar 18 11:28:09 PDT 2008

 >         I use ibv_get_cq_event to wait a completion event. I use
 > ibv_ack_cq_events to acknowledge that event every time. But I find I will
 > get the same event many times.

Is it the same event, or a new event for the same CQ?

 >         I want to delete the entry from cq after processing it. How can I do
 > it?

completion queue entries are removed whenever they are returned by
ibv_poll_cq().  You should never get the same entry twice.

Perhaps if you posted the code that is having the problem, we could
help you debug it.

More information about the ewg mailing list