[openib-general] mthca: post_receive

Michael S. Tsirkin mst at mellanox.co.il
Wed Feb 9 03:21:40 PST 2005


                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



More information about the general mailing list