Skip to content

Commit 3865147

Browse files
Kalesh APrleon
authored andcommitted
RDMA/bnxt_re: Fix the check for 9060 condition
The check for 9060 condition should only be made for legacy chips. Fixes: 9152e0b ("RDMA/bnxt_re: HW workarounds for handling specific conditions") Reviewed-by: Kashyap Desai <[email protected]> Signed-off-by: Kalesh AP <[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 a4048c8 commit 3865147

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

drivers/infiniband/hw/bnxt_re/qplib_fp.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2669,10 +2669,12 @@ static int bnxt_qplib_cq_process_req(struct bnxt_qplib_cq *cq,
26692669
bnxt_qplib_add_flush_qp(qp);
26702670
} else {
26712671
/* Before we complete, do WA 9060 */
2672-
if (do_wa9060(qp, cq, cq_cons, sq->swq_last,
2673-
cqe_sq_cons)) {
2674-
*lib_qp = qp;
2675-
goto out;
2672+
if (!bnxt_qplib_is_chip_gen_p5_p7(qp->cctx)) {
2673+
if (do_wa9060(qp, cq, cq_cons, sq->swq_last,
2674+
cqe_sq_cons)) {
2675+
*lib_qp = qp;
2676+
goto out;
2677+
}
26762678
}
26772679
if (swq->flags & SQ_SEND_FLAGS_SIGNAL_COMP) {
26782680
cqe->status = CQ_REQ_STATUS_OK;

0 commit comments

Comments
 (0)