Skip to content

Commit 0fa0d52

Browse files
Kalesh APjgunthorpe
authored andcommitted
RDMA/bnxt_re: Fix return value of bnxt_re_process_raw_qp_pkt_rx
bnxt_re_process_raw_qp_pkt_rx() always return 0 and ignores the return value of bnxt_re_post_send_shadow_qp(). Fixes: 1ac5a40 ("RDMA/bnxt_re: Add bnxt_re RoCE driver") Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Hongguang Gao <[email protected]> Reviewed-by: Ajit Khaparde <[email protected]> Signed-off-by: Kalesh AP <[email protected]> Signed-off-by: Selvin Xavier <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent 349e3c0 commit 0fa0d52

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/infiniband/hw/bnxt_re/ib_verbs.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3341,9 +3341,7 @@ static int bnxt_re_process_raw_qp_pkt_rx(struct bnxt_re_qp *gsi_qp,
33413341
udwr.remote_qkey = gsi_sqp->qplib_qp.qkey;
33423342

33433343
/* post data received in the send queue */
3344-
rc = bnxt_re_post_send_shadow_qp(rdev, gsi_sqp, swr);
3345-
3346-
return 0;
3344+
return bnxt_re_post_send_shadow_qp(rdev, gsi_sqp, swr);
33473345
}
33483346

33493347
static void bnxt_re_process_res_rawqp1_wc(struct ib_wc *wc,

0 commit comments

Comments
 (0)