Skip to content

Commit

Permalink
IB/ipath: Reset the retry counter for RDMA_READ_RESPONSE_MIDDLE packets
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Patrick Marchand Latifi authored and Roland Dreier committed Mar 11, 2008
1 parent 2a049e5 commit 450bb38
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/infiniband/hw/ipath/ipath_rc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 450bb38

Please sign in to comment.