linux_dsm_epyc7002/drivers/net/ethernet/broadcom/bnxt
Michael Chan 00fe9c326d bnxt_en: Do not adjust max_cp_rings by the ones used by RDMA.
Currently, the driver adjusts the bp->hw_resc.max_cp_rings by the number
of MSIX vectors used by RDMA.  There is one code path in open that needs
to check the true max_cp_rings including any used by RDMA.  This code
is now checking for the reduced max_cp_rings which will fail when the
number of cp rings is very small.

To fix this in a clean way, we don't adjust max_cp_rings anymore.
Instead, we add a helper bnxt_get_max_func_cp_rings_for_en() to get the
reduced max_cp_rings when appropriate.

Fixes: ec86f14ea5 ("bnxt_en: Add ULP calls to stop and restart IRQs.")
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-09-03 21:59:43 -07:00
..
bnxt_coredump.h bnxt_en: Add support for ethtool get dump. 2018-08-05 17:08:26 -07:00
bnxt_dcb.c bnxt_en: Add DCBNL DSCP application protocol support. 2018-08-05 17:08:26 -07:00
bnxt_dcb.h bnxt_en: Do not use the CNP CoS queue for networking traffic. 2018-08-05 17:08:26 -07:00
bnxt_debugfs.c bnxt_en: add debugfs support for DIM 2018-04-27 14:47:30 -04:00
bnxt_debugfs.h bnxt_en: add debugfs support for DIM 2018-04-27 14:47:30 -04:00
bnxt_devlink.c bnxt_en: Update firmware interface version to 1.9.2.25. 2018-08-05 17:08:25 -07:00
bnxt_devlink.h bnxt_en: Add bnxt_en initial params table and register it. 2018-07-05 19:58:35 +09:00
bnxt_dim.c net/dim: Rename *_get_profile() functions to *_get_rx_moderation() 2018-04-24 10:15:07 -04:00
bnxt_ethtool.c bnxt_en: take coredump_record structure off stack 2018-08-13 20:45:49 -07:00
bnxt_ethtool.h bnxt_en: Add support for ethtool get dump. 2018-08-05 17:08:26 -07:00
bnxt_fw_hdr.h
bnxt_hsi.h bnxt_en: Update firmware interface version to 1.9.2.25. 2018-08-05 17:08:25 -07:00
bnxt_nvm_defs.h bnxt_en: Fix memory fault in bnxt_ethtool_init() 2018-04-19 16:35:09 -04:00
bnxt_sriov.c bnxt_en: Do not adjust max_cp_rings by the ones used by RDMA. 2018-09-03 21:59:43 -07:00
bnxt_sriov.h bnxt_en: Reserve RSS and L2 contexts for VF. 2018-04-27 14:47:31 -04:00
bnxt_tc.c net_sched: remove list_head from tc_action 2018-08-21 12:45:44 -07:00
bnxt_tc.h bnxt_en: alloc tc_info{} struct only when tc flower is enabled 2017-10-28 00:02:45 +09:00
bnxt_ulp.c bnxt_en: Do not adjust max_cp_rings by the ones used by RDMA. 2018-09-03 21:59:43 -07:00
bnxt_ulp.h bnxt_en: Clean up unused functions. 2018-09-03 21:59:43 -07:00
bnxt_vfr.c bnxt_en: Add bnxt_en initial params table and register it. 2018-07-05 19:58:35 +09:00
bnxt_vfr.h bnxt_en: export a common switchdev PARENT_ID for all reps of an adapter 2018-01-17 14:48:27 -05:00
bnxt_xdp.c xdp: don't make drivers report attachment mode 2018-07-13 20:26:35 +02:00
bnxt_xdp.h net: bpf: rename ndo_xdp to ndo_bpf 2017-11-05 22:26:18 +09:00
bnxt.c bnxt_en: Do not adjust max_cp_rings by the ones used by RDMA. 2018-09-03 21:59:43 -07:00
bnxt.h bnxt_en: Do not adjust max_cp_rings by the ones used by RDMA. 2018-09-03 21:59:43 -07:00
Makefile bnxt_en: add debugfs support for DIM 2018-04-27 14:47:30 -04:00