[ofa-general] [PATCH] ipoib: Bug fix in ipoib_poll - resend

Krishna Kumar2 krkumar2 at in.ibm.com
Tue Nov 27 01:53:01 PST 2007


Hi Eli,

>
>        t = min(IPOIB_NUM_WC, max);
>        n = ib_poll_cq(priv->cq, t, priv->ibwc);
> +      if (unlikely(n < 1))
> +         break;
>
>        for (i = 0; i < n; i++) {
>           struct ib_wc *wc = priv->ibwc + i;

The 'for' loop (followed by the "if (n != t) break" check)
should take care of this, isn't it?

Thanks,

- KK




More information about the general mailing list