That is what I am already doing (note the comment, "// loop to
drain..."). I loop calling ibv_poll_cq until it is empty. I just noted
that due to the usage model, I only see it pull one CQE and then on
the 2nd pass through the loop the CQ is empty.


On 5/27/07, Dotan Barak <[EMAIL PROTECTED]> wrote:

Try to do the following scenario:


ibv_req_notify_cq(cq, 0);

ibv_post_send(qp, &work_req, &bad_work_req);

ibv_get_cq_event(channel, &ev_cq, &ev_ctx);

ibv_ack_cq_events(ev_cq, 1);

ibv_req_notify_cq(cq, 0);

in a loop until the CQ is empty:
        ibv_poll_cq(cq, 1, &wc);  // loop to drain - but due to upper protocol, 
will only ever be 1 at a time

_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

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

Reply via email to