Skip to content

Commit 064c224

Browse files
kadesai16rleon
authored andcommitted
RDMA/bnxt_re: Avoid sending the modify QP workaround for latest adapters
The workaround to modify the UD QP from RTS to RTS is required only for older adapters. Issuing this for latest adapters can caus some unexpected behavior. Fix it Fixes: 1801d87 ("RDMA/bnxt_re: Support new 5760X P7 devices") Signed-off-by: Kashyap Desai <[email protected]> Signed-off-by: Selvin Xavier <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Leon Romanovsky <[email protected]>
1 parent 5effcac commit 064c224

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/infiniband/hw/bnxt_re/ib_verbs.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2824,7 +2824,8 @@ static int bnxt_re_post_send_shadow_qp(struct bnxt_re_dev *rdev,
28242824
wr = wr->next;
28252825
}
28262826
bnxt_qplib_post_send_db(&qp->qplib_qp);
2827-
bnxt_ud_qp_hw_stall_workaround(qp);
2827+
if (!bnxt_qplib_is_chip_gen_p5_p7(qp->rdev->chip_ctx))
2828+
bnxt_ud_qp_hw_stall_workaround(qp);
28282829
spin_unlock_irqrestore(&qp->sq_lock, flags);
28292830
return rc;
28302831
}
@@ -2936,7 +2937,8 @@ int bnxt_re_post_send(struct ib_qp *ib_qp, const struct ib_send_wr *wr,
29362937
wr = wr->next;
29372938
}
29382939
bnxt_qplib_post_send_db(&qp->qplib_qp);
2939-
bnxt_ud_qp_hw_stall_workaround(qp);
2940+
if (!bnxt_qplib_is_chip_gen_p5_p7(qp->rdev->chip_ctx))
2941+
bnxt_ud_qp_hw_stall_workaround(qp);
29402942
spin_unlock_irqrestore(&qp->sq_lock, flags);
29412943

29422944
return rc;

0 commit comments

Comments
 (0)