diff mbox series

[v2,for-rc,2/3] RDMA/bnxt_re: Fix return value of bnxt_re_process_raw_qp_pkt_rx

Message ID 1684397461-23082-3-git-send-email-selvin.xavier@broadcom.com (mailing list archive)
State Superseded
Delegated to: Jason Gunthorpe
Headers show
Series RDMA/bnxt_re: Bug fixes | expand

Commit Message

Selvin Xavier May 18, 2023, 8:11 a.m. UTC
From: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>

bnxt_re_process_raw_qp_pkt_rx() always return 0 and ignores
the return value of bnxt_re_post_send_shadow_qp().

Fixes: 1ac5a4047975 ("RDMA/bnxt_re: Add bnxt_re RoCE driver")
Reviewed-by: Hongguang Gao <hongguang.gao@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
---
 drivers/infiniband/hw/bnxt_re/ib_verbs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/infiniband/hw/bnxt_re/ib_verbs.c b/drivers/infiniband/hw/bnxt_re/ib_verbs.c
index e86afec..0b581c2 100644
--- a/drivers/infiniband/hw/bnxt_re/ib_verbs.c
+++ b/drivers/infiniband/hw/bnxt_re/ib_verbs.c
@@ -3343,7 +3343,7 @@  static int bnxt_re_process_raw_qp_pkt_rx(struct bnxt_re_qp *gsi_qp,
 	/* post data received  in the send queue */
 	rc = bnxt_re_post_send_shadow_qp(rdev, gsi_sqp, swr);
 
-	return 0;
+	return rc;
 }
 
 static void bnxt_re_process_res_rawqp1_wc(struct ib_wc *wc,