[openib-general] is wc valid if ib_poll_cq() returns zero

Rimmer, Todd trimmer at silverstorm.com
Fri Jul 14 10:56:59 PDT 2006


> From: somenath [mailto:somenath at veritas.com]
> 
> just to make sure I conveyed the exact thing I meant, if I change
> the above code as follows:
> 
> while (ib_poll_cq(cq, 1, &wc) > 0) {
>      process completion();
> }
> rearm CQ;
> 
> then I just get notification once, and don't get any futher
> notifications...so I assume rearm CQ should be done even if
> ib_poll_cq() returns zero.

Yes, if you don't rearm you would never get another completion for the
CQ.  However it is not yet clear why you are not finding the initial
completion when your 1st callback invoked poll_cq.

Todd Rimmer




More information about the general mailing list