Skip to content

Commit 9e68cb0

Browse files
Vasundhara Volamdavem330
authored andcommitted
bnxt_en: Reduce BNXT_MSIX_VEC_MAX value to supported CQs per PF.
Broadcom adapters support only maximum of 512 CQs per PF. If user sets MSIx vectors more than supported CQs, firmware is setting incorrect value for msix_vec_per_pf_max parameter. Fix it by reducing the BNXT_MSIX_VEC_MAX value to 512, even though the maximum # of MSIx vectors supported by adapter are 1280. Fixes: f399e84 ("bnxt_en: Use msix_vec_per_pf_max and msix_vec_per_pf_min devlink params.") Signed-off-by: Vasundhara Volam <[email protected]> Signed-off-by: Michael Chan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent c71c4e4 commit 9e68cb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ static inline void bnxt_link_bp_to_dl(struct bnxt *bp, struct devlink *dl)
4343
#define BNXT_NVM_CFG_VER_BITS 24
4444
#define BNXT_NVM_CFG_VER_BYTES 4
4545

46-
#define BNXT_MSIX_VEC_MAX 1280
46+
#define BNXT_MSIX_VEC_MAX 512
4747
#define BNXT_MSIX_VEC_MIN_MAX 128
4848

4949
enum bnxt_nvm_dir_type {

0 commit comments

Comments
 (0)