Skip to content

Commit 37b3619

Browse files
Andrew Boyerdledford
authored andcommitted
IB/rxe: Use BTH_PSN_MASK when ACKing duplicate sends
Signed-off-by: Andrew Boyer <andrew.boyer@dell.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
1 parent 74c3875 commit 37b3619

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/infiniband/sw/rxe/rxe_resp.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1070,12 +1070,13 @@ static enum resp_states duplicate_request(struct rxe_qp *qp,
10701070
struct rxe_pkt_info *pkt)
10711071
{
10721072
enum resp_states rc;
1073+
u32 prev_psn = (qp->resp.psn - 1) & BTH_PSN_MASK;
10731074

10741075
if (pkt->mask & RXE_SEND_MASK ||
10751076
pkt->mask & RXE_WRITE_MASK) {
10761077
/* SEND. Ack again and cleanup. C9-105. */
10771078
if (bth_ack(pkt))
1078-
send_ack(qp, pkt, AETH_ACK_UNLIMITED, qp->resp.psn - 1);
1079+
send_ack(qp, pkt, AETH_ACK_UNLIMITED, prev_psn);
10791080
rc = RESPST_CLEANUP;
10801081
goto out;
10811082
} else if (pkt->mask & RXE_READ_MASK) {

0 commit comments

Comments
 (0)