diff options
author | Michael S. Tsirkin <mst@dev.mellanox.co.il> | 2007-05-14 07:26:51 +0300 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2007-05-14 14:10:34 -0700 |
commit | 3e28c56b9b67347b42ba06f9a9373b408902beee (patch) | |
tree | a1aad69f682c6f76e989dd871dcc2e954d0ae5ab /drivers/infiniband | |
parent | 6c719f5c6c823901fac2d46b83db5a69ba7e9152 (diff) | |
download | linux-3e28c56b9b67347b42ba06f9a9373b408902beee.tar.bz2 |
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')
-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; } |