Skip to content

Commit 3865147

Browse files
kaleshap86rleon
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 <kashyap.desai@broadcom.com> Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com> Link: https://patch.msgid.link/20241211083931.968831-2-kalesh-anakkur.purayil@broadcom.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
1 parent a4048c8 commit 3865147

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

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)