diff options
author | Patrick Marchand Latifi <patrick.latifi@qlogic.com> | 2008-02-21 04:08:10 +0100 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2008-03-11 22:04:35 +0100 |
commit | 450bb3875f5f5ab3679823c941d6045d16967370 (patch) | |
tree | 8e92a0d4caf8a625ef5ab37a417897f88a5ee420 /drivers/infiniband | |
parent | IB/ipath: Fix error completion put on send CQ instead of recv CQ (diff) | |
download | linux-450bb3875f5f5ab3679823c941d6045d16967370.tar.xz linux-450bb3875f5f5ab3679823c941d6045d16967370.zip |
IB/ipath: Reset the retry counter for RDMA_READ_RESPONSE_MIDDLE packets
Reset the retry counter when we get a good RDMA_READ_RESPONSE_MIDDLE
packet. This fix will prevent the requester from reporting a retry
exceeded error too early.
Signed-off-by: Patrick Marchand Latifi <patrick.latifi@qlogic.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_rc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_rc.c b/drivers/infiniband/hw/ipath/ipath_rc.c index 459e46e2c016..40f3e37d7adc 100644 --- a/drivers/infiniband/hw/ipath/ipath_rc.c +++ b/drivers/infiniband/hw/ipath/ipath_rc.c @@ -1196,6 +1196,10 @@ static inline void ipath_rc_rcv_resp(struct ipath_ibdev *dev, list_move_tail(&qp->timerwait, &dev->pending[dev->pending_index]); spin_unlock(&dev->pending_lock); + + if (opcode == OP(RDMA_READ_RESPONSE_MIDDLE)) + qp->s_retry = qp->s_retry_cnt; + /* * Update the RDMA receive state but do the copy w/o * holding the locks and blocking interrupts. |