[ewg] retry_cnt, rnr_retry and ibv_get_cq_event/ibv_req_notify_cq

Roland Dreier rdreier at cisco.com
Mon Apr 19 09:11:33 PDT 2010


 > What still seems a bit tricky to me is exactly how many events to poll
 > for while avoiding blocking in ibv_poll_cq.

ibv_poll_cq will never block.  It will return work completions until the
CQ is empty (using the term "event" is a bit confusing here, since it
usually applies to the events generated when you request notification on
a CQ and then a work completion is added to that CQ).  So the simplest
thing to do is just to poll the CQ in a loop and break out when the CQ
is empty.

 - R.
-- 
Roland Dreier <rolandd at cisco.com> || For corporate legal information go to:
http://www.cisco.com/web/about/doing_business/legal/cri/index.html



More information about the ewg mailing list