]> www.infradead.org Git - users/willy/xarray.git/commitdiff
RDMA/bnxt_re: Fix the max msix vectors macro
authorSelvin Xavier <selvin.xavier@broadcom.com>
Mon, 20 May 2024 08:56:58 +0000 (01:56 -0700)
committerLeon Romanovsky <leon@kernel.org>
Thu, 30 May 2024 12:00:07 +0000 (15:00 +0300)
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: 303432211324 ("bnxt_en: Remove runtime interrupt vector allocation")
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Link: https://lore.kernel.org/r/1716195418-11767-1-git-send-email-selvin.xavier@broadcom.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/bnxt_re/bnxt_re.h

index 9dca451ed5221a7bab7eb303258895974017911a..6974922e5609a09f5acbd4eeffa2fd6d87fabe99 100644 (file)
@@ -107,8 +107,6 @@ struct bnxt_re_gsi_context {
        struct  bnxt_re_sqp_entries *sqp_tbl;
 };
 
-#define BNXT_RE_MIN_MSIX               2
-#define BNXT_RE_MAX_MSIX               9
 #define BNXT_RE_AEQ_IDX                        0
 #define BNXT_RE_NQ_IDX                 1
 #define BNXT_RE_GEN_P5_MAX_VF          64
@@ -168,7 +166,7 @@ struct bnxt_re_dev {
        struct bnxt_qplib_rcfw          rcfw;
 
        /* NQ */
-       struct bnxt_qplib_nq            nq[BNXT_RE_MAX_MSIX];
+       struct bnxt_qplib_nq            nq[BNXT_MAX_ROCE_MSIX];
 
        /* Device Resources */
        struct bnxt_qplib_dev_attr      dev_attr;