1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet
Michael Chan c1129b51ca bnxt_en: Increase maximum RX ring size if jumbo ring is not used
The current maximum RX ring size is defined assuming the RX jumbo ring
(aka aggregation ring) is used.  The RX jumbo ring is automicatically used
when the MTU exceeds a threshold or when rx-gro-hw/lro is enabled.  The RX
jumbo ring is automatically sized up to 4 times the size of the RX ring
size.

The BNXT_MAX_RX_DESC_CNT constant is the upper limit on the size of the
RX ring whether or not the RX jumbo ring is used.  Obviously, the
maximum amount of RX buffer space is significantly less when the RX jumbo
ring is not used.

To increase flexibility for the user who does not use the RX jumbo ring,
we now define a bigger maximum RX ring size when the RX jumbo ring is not
used.  The maximum RX ring size is now up to 8K when the RX jumbo ring
is not used.  The maximum completion ring size also needs to be scaled
up to accomodate the larger maximum RX ring size.

Note that when the RX jumbo ring is re-enabled, the RX ring size will
automatically drop if it exceeds the maximum.

Reviewed-by: Edwin Peer <edwin.peer@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-08-03 12:38:47 +01:00
..
3com net: 3c509: make the array if_names static const, makes object smaller 2021-08-02 15:02:04 -07:00
8390 dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
actions dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
adaptec dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
aeroflex net: ethernet: aeroflex: fix UAF in greth_of_remove 2021-06-19 11:45:10 -07:00
agere dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
alacritech
allwinner dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
alteon net: alteon: remove leading spaces before tabs 2021-05-19 12:17:30 -07:00
altera of: net: pass the dst buffer to of_get_mac_address() 2021-04-13 14:35:02 -07:00
amazon Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next 2021-06-28 15:28:03 -07:00
amd dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
apm
apple net: apple: remove leading spaces before tabs 2021-05-19 12:17:30 -07:00
aquantia dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
arc dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
atheros dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
broadcom bnxt_en: Increase maximum RX ring size if jumbo ring is not used 2021-08-03 12:38:47 +01:00
brocade net: brocade: bna: Fix wrong function name in comments 2021-05-17 14:12:38 -07:00
cadence dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
calxeda net: calxeda: Fix wrong function name in comments 2021-05-17 14:12:38 -07:00
cavium cavium: switch from 'pci_' to 'dma_' API 2021-08-02 15:10:39 +01:00
chelsio cxgb4: make the array match_all_mac static, makes object smaller 2021-08-02 15:01:26 -07:00
cirrus dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
cisco ethernet:enic: Fix a use after free bug in enic_hard_start_xmit 2021-05-03 13:23:00 -07:00
cortina net: gemini: Use devm_platform_get_and_ioremap_resource() 2021-06-07 13:20:00 -07:00
davicom dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
dec Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-07-31 09:14:46 -07:00
dlink dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
emulex Revert "be2net: disable bh with spin_lock in be_process_mcc" 2021-06-25 11:44:16 -07:00
ezchip net: ethernet: ezchip: fix error handling 2021-06-19 11:46:00 -07:00
faraday dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
freescale dpaa2-eth: make the array faf_bits static const, makes object smaller 2021-08-02 15:01:55 -07:00
fujitsu Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-05-27 09:55:10 -07:00
google gve: fix the wrong AdminQ buffer overflow check 2021-07-16 10:41:40 -07:00
hisilicon Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-07-31 09:14:46 -07:00
huawei net: huawei: hinic: Fix wrong function name in comments 2021-05-17 14:12:38 -07:00
i825xx
ibm dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
intel Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-07-31 09:14:46 -07:00
marvell net: marvell: make the array name static, makes object smaller 2021-08-02 15:01:37 -07:00
mediatek dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
mellanox mlx5-updates-2021-08-02 2021-08-03 11:16:13 +01:00
micrel dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
microchip dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
microsoft Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-06-29 15:45:27 -07:00
moxa net: moxa: fix UAF in moxart_mac_probe 2021-07-09 11:01:01 -07:00
mscc dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
myricom ethernet: myri10ge: Fix missing error code in myri10ge_probe() 2021-06-01 15:54:38 -07:00
natsemi dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
neterion dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
netronome nfp: flower-ct: fix error return code in nfp_fl_ct_add_offload() 2021-07-28 12:56:30 +01:00
ni net: nixge: simplify code with devm platform functions 2021-06-08 16:36:57 -07:00
nvidia
nxp dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
oki-semi dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
packetengines dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
pasemi
pensando Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-07-31 09:14:46 -07:00
qlogic qed: Remove duplicated include of kernel.h 2021-08-03 11:49:28 +01:00
qualcomm dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
rdc dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
realtek dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
renesas dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
rocker net: bridge: switchdev: allow the TX data plane forwarding to be offloaded 2021-07-23 16:32:37 +01:00
samsung dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
seeq net: seeq: remove leading spaces before tabs 2021-05-19 12:17:31 -07:00
sfc dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
sgi dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
silan
sis Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-07-31 09:14:46 -07:00
smsc dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
socionext dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
stmicro Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-07-31 09:14:46 -07:00
sun niu: read property length only if we use it 2021-08-02 10:24:07 +01:00
synopsys dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
tehuti tehuti: use ndo_siocdevprivate 2021-07-27 20:11:43 +01:00
ti net: ti: am65-cpsw-nuss: fix wrong devlink release order 2021-07-28 10:23:45 +01:00
toshiba dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
tundra dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
via dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
wiznet net: w5100: Use devm_platform_get_and_ioremap_resource() 2021-06-10 13:53:13 -07:00
xilinx dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
xircom dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
xscale dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
dnet.c dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
dnet.h
ec_bhf.c net: ethernet: fix potential use-after-free in ec_bhf_remove 2021-06-18 13:01:17 -07:00
ethoc.c dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
fealnx.c dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
jme.c dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
jme.h net: jme: Replace link-change tasklet with work 2021-03-17 16:33:58 +01:00
Kconfig net: korina: Make driver COMPILE_TESTable 2021-04-19 15:58:14 -07:00
korina.c dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
lantiq_etop.c dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
lantiq_xrx200.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-06-18 19:47:02 -07:00
Makefile net: mana: Add a driver for Microsoft Azure Network Adapter (MANA) 2021-04-19 15:24:25 -07:00