Skip to content

Commit 3de1b50

Browse files
kadesai16gregkh
authored andcommitted
RDMA/bnxt_re: Fix max SGEs for the Work Request
commit 79d330f upstream. Gen P7 supports up to 13 SGEs for now. WQE software structure can hold only 6 now. Since the max send sge is reported as 13, the stack can give requests up to 13 SGEs. This is causing traffic failures and system crashes. Use the define for max SGE supported for variable size. This will work for both static and variable WQEs. Fixes: 227f517 ("RDMA/bnxt_re: Fix the max WQE size for static WQE support") Signed-off-by: Kashyap Desai <kashyap.desai@broadcom.com> Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com> Link: https://patch.msgid.link/20241204075416.478431-2-kalesh-anakkur.purayil@broadcom.com Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent f61e663 commit 3de1b50

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/infiniband/hw/bnxt_re/qplib_fp.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ struct bnxt_qplib_sge {
113113
u32 size;
114114
};
115115

116-
#define BNXT_QPLIB_QP_MAX_SGL 6
117116
struct bnxt_qplib_swq {
118117
u64 wr_id;
119118
int next_idx;
@@ -153,7 +152,7 @@ struct bnxt_qplib_swqe {
153152
#define BNXT_QPLIB_SWQE_FLAGS_UC_FENCE BIT(2)
154153
#define BNXT_QPLIB_SWQE_FLAGS_SOLICIT_EVENT BIT(3)
155154
#define BNXT_QPLIB_SWQE_FLAGS_INLINE BIT(4)
156-
struct bnxt_qplib_sge sg_list[BNXT_QPLIB_QP_MAX_SGL];
155+
struct bnxt_qplib_sge sg_list[BNXT_VAR_MAX_SGE];
157156
int num_sge;
158157
/* Max inline data is 96 bytes */
159158
u32 inline_len;

0 commit comments

Comments
 (0)