linux_dsm_epyc7002/drivers/net/ethernet/broadcom
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
..
bnx2x Merge ra.kernel.org:/pub/scm/linux/kernel/git/davem/net 2018-07-24 19:21:58 -07:00
bnxt bnxt_en: Do not adjust max_cp_rings by the ones used by RDMA. 2018-09-03 21:59:43 -07:00
genet net: bcmgenet: use MAC link status for fixed phy 2018-08-29 19:51:35 -07:00
b44.c
b44.h
bcm63xx_enet.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
bcm63xx_enet.h
bcmsysport.c net: systemport: fix unused function warning 2018-08-13 20:45:49 -07:00
bcmsysport.h net: systemport: Add support for WAKE_FILTER 2018-08-07 12:15:03 -07:00
bgmac-bcma-mdio.c
bgmac-bcma.c
bgmac-platform.c
bgmac.c net: bgmac: remove redundant variable 'freed' 2018-07-04 22:39:11 +09:00
bgmac.h
bnx2_fw.h
bnx2.c treewide: Use array_size() in vzalloc() 2018-06-12 16:19:22 -07:00
bnx2.h
cnic_defs.h
cnic_if.h
cnic.c cnic: use kvzalloc to allocate memory for csk_tbl 2018-07-11 22:55:52 -07:00
cnic.h
Kconfig bnxt_en: Add hwmon sysfs support to read temperature 2018-08-05 17:08:26 -07:00
Makefile
sb1250-mac.c
tg3.c Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2018-08-15 16:01:47 -07:00
tg3.h tg3: Update copyright 2018-07-16 14:42:10 -07:00