kernel_optimize_test/drivers/net
Yannick Vignon 0473032821 net: stmmac: Do not enable RX FIFO overflow interrupts
[ Upstream commit 8a7cb245cf28cb3e541e0d6c8624b95d079e155b ]

The RX FIFO overflows when the system is not able to process all received
packets and they start accumulating (first in the DMA queue in memory,
then in the FIFO). An interrupt is then raised for each overflowing packet
and handled in stmmac_interrupt(). This is counter-productive, since it
brings the system (or more likely, one CPU core) to its knees to process
the FIFO overflow interrupts.

stmmac_interrupt() handles overflow interrupts by writing the rx tail ptr
into the corresponding hardware register (according to the MAC spec, this
has the effect of restarting the MAC DMA). However, without freeing any rx
descriptors, the DMA stops right away, and another overflow interrupt is
raised as the FIFO overflows again. Since the DMA is already restarted at
the end of stmmac_rx_refill() after freeing descriptors, disabling FIFO
overflow interrupts and the corresponding handling code has no side effect,
and eliminates the interrupt storm when the RX FIFO overflows.

Signed-off-by: Yannick Vignon <yannick.vignon@nxp.com>
Link: https://lore.kernel.org/r/20210506143312.20784-1-yannick.vignon@oss.nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-05-22 11:40:55 +02:00
..
appletalk
arcnet
bonding
caif
can can: m_can: m_can_tx_work_queue(): fix tx_skb race condition 2021-05-19 10:13:08 +02:00
dsa net: phy: marvell: fix detection of PHY on Topaz switches 2021-04-21 13:01:00 +02:00
ethernet net: stmmac: Do not enable RX FIFO overflow interrupts 2021-05-22 11:40:55 +02:00
fddi FDDI: defxx: Make MMIO the configuration default except for EISA 2021-05-14 09:50:00 +02:00
fjes
hamradio
hippi
hyperv
ieee802154 drivers: net: fix memory leak in atusb_probe 2021-04-14 08:42:13 +02:00
ipa
ipvlan
mdio
netdevsim
pcs
phy net: phy: marvell: fix m88e1111_set_downshift 2021-05-14 09:50:42 +02:00
plip
ppp
slip
team
usb net: usb: ax88179_178a: initialize local variables before use 2021-05-07 11:04:31 +02:00
vmxnet3
wan net: lapbether: Prevent racing when checking whether the netif is running 2021-05-14 09:50:29 +02:00
wimax staging: wimax/i2400m: fix byte-order issue 2021-05-11 14:47:16 +02:00
wireguard
wireless airo: work around stack usage warning 2021-05-22 11:40:51 +02:00
xen-netback xen-netback: Check for hotplug-status existence before watching 2021-04-28 13:40:02 +02:00
bareudp.c
dummy.c
eql.c
geneve.c net: geneve: modify IP header check in geneve6_xmit_skb and geneve_xmit_skb 2021-05-14 09:50:43 +02:00
gtp.c
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macsec.c
macvlan.c
macvtap.c
Makefile
mdio.c
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
thunderbolt.c
tun.c net: tun: set tun->dev->addr_len during TUNSETLINK processing 2021-04-14 08:42:13 +02:00
veth.c
virtio_net.c virtio_net: Do not pull payload in skb->head 2021-05-22 11:40:52 +02:00
vrf.c
vsockmon.c
vxlan.c vxlan: do not modify the shared tunnel info when PMTU triggers an ICMP reply 2021-04-14 08:42:06 +02:00
xen-netfront.c