linux/drivers/net/ethernet/broadcom/bnxt
Michael Chan f1e50b276d bnxt_en: Fix trimming of P5 RX and TX rings
The recent commit to trim the RX and TX rings on P5 chips by assigning
each with max CP rings divided by 2 is not correct.  Max CP rings
divided by 2 may be bigger than the original RX or TX and would
lead to failure.  In other words, we may be checking for increased
RX/TX rings than required and it may fail.

Fix it by calling __bnxt_trim_rings() instead that would properly
trim RX and TX without the possibility of increasing their values.

Fixes: f5b29c6afe ("bnxt_en: Add helper to get the number of CP rings required for TX rings")
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Link: https://lore.kernel.org/r/20231212005122.2401-2-michael.chan@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-12-12 16:05:57 -08:00
..
bnxt.c bnxt_en: Fix trimming of P5 RX and TX rings 2023-12-12 16:05:57 -08:00
bnxt.h bnxt_en: Add 5760X (P7) PCI IDs 2023-12-04 15:12:49 -08:00
bnxt_coredump.c
bnxt_coredump.h
bnxt_dcb.c bnxt_en: Fix W=stringop-overflow warning in bnxt_dcb.c 2023-08-08 15:07:18 -07:00
bnxt_dcb.h eth: bnxt: fix warning for define in struct_group 2023-07-28 13:47:34 -07:00
bnxt_debugfs.c
bnxt_debugfs.h
bnxt_devlink.c bnxt_en: Rename some macros for the P5 chips 2023-11-21 17:32:49 -08:00
bnxt_devlink.h
bnxt_dim.c
bnxt_ethtool.c bnxt_en: Report the new ethtool link modes in the new firmware interface 2023-12-04 15:12:48 -08:00
bnxt_ethtool.h
bnxt_fw_hdr.h
bnxt_hsi.h bnxt_en: Update firmware interface to 1.10.3.15 2023-12-04 15:12:47 -08:00
bnxt_hwmon.c bnxt_en: Do not call sleeping hwmon_notify_event() from NAPI 2023-10-22 11:41:45 +01:00
bnxt_hwmon.h bnxt_en: Do not call sleeping hwmon_notify_event() from NAPI 2023-10-22 11:41:45 +01:00
bnxt_hwrm.c eth: bnxt: fix backward compatibility with older devices 2023-10-17 17:50:55 -07:00
bnxt_hwrm.h eth: bnxt: fix backward compatibility with older devices 2023-10-17 17:50:55 -07:00
bnxt_nvm_defs.h
bnxt_ptp.c bnxt_en: Rename some macros for the P5 chips 2023-11-21 17:32:49 -08:00
bnxt_ptp.h
bnxt_sriov.c bnxt_en: Rename some macros for the P5 chips 2023-11-21 17:32:49 -08:00
bnxt_sriov.h
bnxt_tc.c net: bnxt: fix a potential use-after-free in bnxt_init_tc 2023-12-05 19:43:42 -08:00
bnxt_tc.h
bnxt_ulp.c bnxt_en: Consolidate DB offset calculation 2023-12-04 15:12:47 -08:00
bnxt_ulp.h bnxt_en: Consolidate DB offset calculation 2023-12-04 15:12:47 -08:00
bnxt_vfr.c
bnxt_vfr.h
bnxt_xdp.c bnxt_en: Modify TX ring indexing logic. 2023-11-21 17:32:49 -08:00
bnxt_xdp.h bnxt: don't handle XDP in netpoll 2023-07-31 14:28:39 -07:00
Makefile bnxt_en: Move hwmon functions into a dedicated file 2023-10-04 11:23:01 +01:00