Skip to content

Commit 45cfa88

Browse files
chandramohan-akularleon
authored andcommitted
RDMA/bnxt_re: Do not report SRQ error in srq notification
In the SRQ notification handler, do not report the SRQ_ERROR in the default event case, as there was no error. Signed-off-by: Chandramohan Akula <[email protected]> Signed-off-by: Selvin Xavier <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Leon Romanovsky <[email protected]>
1 parent b02fd3f commit 45cfa88

File tree

1 file changed

+2
-5
lines changed
  • drivers/infiniband/hw/bnxt_re

1 file changed

+2
-5
lines changed

drivers/infiniband/hw/bnxt_re/main.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,13 +1187,10 @@ static int bnxt_re_srqn_handler(struct bnxt_qplib_nq *nq,
11871187

11881188
ib_event.device = &srq->rdev->ibdev;
11891189
ib_event.element.srq = &srq->ib_srq;
1190-
if (event == NQ_SRQ_EVENT_EVENT_SRQ_THRESHOLD_EVENT)
1191-
ib_event.event = IB_EVENT_SRQ_LIMIT_REACHED;
1192-
else
1193-
ib_event.event = IB_EVENT_SRQ_ERR;
11941190

11951191
if (srq->ib_srq.event_handler) {
1196-
/* Lock event_handler? */
1192+
if (event == NQ_SRQ_EVENT_EVENT_SRQ_THRESHOLD_EVENT)
1193+
ib_event.event = IB_EVENT_SRQ_LIMIT_REACHED;
11971194
(*srq->ib_srq.event_handler)(&ib_event,
11981195
srq->ib_srq.srq_context);
11991196
}

0 commit comments

Comments
 (0)