if (qp->rq.cur + nreq >= qp->rq.max) {
mthca_err(dev, "RQ %06x full\n", qp->qpn);
err = -ENOMEM;
*bad_wr = wr;
goto out;
}
Shouldnt that be:
if (qp->rq.cur + nreq > qp->rq.max)
If I want to allow rq.max WQEs - should not I be allowed to post
that much?
--
MST - Michael S. Tsirkin