Skip to content

Commit 056620d

Browse files
selvintxavierrleon
authored andcommitted
RDMA/bnxt_re: Fix the max msix vectors macro
bnxt_re no longer decide the number of MSI-x vectors used by itself. Its decided by bnxt_en now. So when bnxt_en changes this value, system crash is seen. Depend on the max value reported by bnxt_en instead of using the its own macros. Fixes: 3034322 ("bnxt_en: Remove runtime interrupt vector allocation") Signed-off-by: Selvin Xavier <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Leon Romanovsky <[email protected]>
1 parent 1613e60 commit 056620d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/infiniband/hw/bnxt_re/bnxt_re.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,6 @@ struct bnxt_re_gsi_context {
107107
struct bnxt_re_sqp_entries *sqp_tbl;
108108
};
109109

110-
#define BNXT_RE_MIN_MSIX 2
111-
#define BNXT_RE_MAX_MSIX 9
112110
#define BNXT_RE_AEQ_IDX 0
113111
#define BNXT_RE_NQ_IDX 1
114112
#define BNXT_RE_GEN_P5_MAX_VF 64
@@ -168,7 +166,7 @@ struct bnxt_re_dev {
168166
struct bnxt_qplib_rcfw rcfw;
169167

170168
/* NQ */
171-
struct bnxt_qplib_nq nq[BNXT_RE_MAX_MSIX];
169+
struct bnxt_qplib_nq nq[BNXT_MAX_ROCE_MSIX];
172170

173171
/* Device Resources */
174172
struct bnxt_qplib_dev_attr dev_attr;

0 commit comments

Comments
 (0)