diff options
author | Michael S. Tsirkin <mst@dev.mellanox.co.il> | 2007-05-14 06:26:51 +0200 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2007-05-14 23:10:34 +0200 |
commit | 3e28c56b9b67347b42ba06f9a9373b408902beee (patch) | |
tree | a1aad69f682c6f76e989dd871dcc2e954d0ae5ab /drivers/infiniband/hw/mthca | |
parent | RDMA/cma: Add check to validate that cm_id is bound to a device (diff) | |
download | linux-3e28c56b9b67347b42ba06f9a9373b408902beee.tar.xz linux-3e28c56b9b67347b42ba06f9a9373b408902beee.zip |
IB/mthca: Fix posting >255 recv WRs for Tavor
Fix posting lists of > 255 receive WRs for Tavor: rq.next_ind must
be updated each doorbell, otherwise the next doorbell will use an
incorrect index.
Found by Ronni Zimmermann at Mellanox.
Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/mthca')
-rw-r--r-- | drivers/infiniband/hw/mthca/mthca_qp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_qp.c b/drivers/infiniband/hw/mthca/mthca_qp.c index fee60c852d14..72fabb822f1c 100644 --- a/drivers/infiniband/hw/mthca/mthca_qp.c +++ b/drivers/infiniband/hw/mthca/mthca_qp.c @@ -1862,6 +1862,7 @@ int mthca_tavor_post_receive(struct ib_qp *ibqp, struct ib_recv_wr *wr, dev->kar + MTHCA_RECEIVE_DOORBELL, MTHCA_GET_DOORBELL_LOCK(&dev->doorbell_lock)); + qp->rq.next_ind = ind; qp->rq.head += MTHCA_TAVOR_MAX_WQES_PER_RECV_DB; size0 = 0; } |