Commit 450bb387 authored by Patrick Marchand Latifi's avatar Patrick Marchand Latifi Committed by Roland Dreier

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: default avatarPatrick Marchand Latifi <patrick.latifi@qlogic.com>
parent 2a049e51
...@@ -1196,6 +1196,10 @@ static inline void ipath_rc_rcv_resp(struct ipath_ibdev *dev, ...@@ -1196,6 +1196,10 @@ static inline void ipath_rc_rcv_resp(struct ipath_ibdev *dev,
list_move_tail(&qp->timerwait, list_move_tail(&qp->timerwait,
&dev->pending[dev->pending_index]); &dev->pending[dev->pending_index]);
spin_unlock(&dev->pending_lock); 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 * Update the RDMA receive state but do the copy w/o
* holding the locks and blocking interrupts. * holding the locks and blocking interrupts.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment