openwrt/target/linux
Petr Štetiar 498f1f4f5d ramips: gsw_mt7621: disable PORT 5 MAC RX/TX flow control by default
Looking at the current upstream driver implementation, it seems like the
TX/RX flow control is enabled only if the flow control pause option is
resolved from the device/link partner advertisements (or otherwise set).

On the other hand, our current in-tree driver force enables TX/RX
flow control by default, thus possibly leading to TX timeouts if the
other end sends pause frames (which are not properly handled?):

 WARNING: CPU: 3 PID: 0 at net/sched/sch_generic.c:320 dev_watchdog+0x1ac/0x324
 NETDEV WATCHDOG: eth0 (mtk_soc_eth): transmit queue 0 timed out

Disabling the flow control on PORT 5 MAC seems to fix this issues as the
pause frames are then filtered out. While at it, I'm removing the if
condition completely as suggested, since this code is run only on mt7621
SoC, so there is no need to check for the silicon revisions.

Ref: https://lists.openwrt.org/pipermail/openwrt-devel/2017-November/009882.html
Ref: https://forum.openwrt.org/t/mtk-soc-eth-watchdog-timeout-after-r11573/50000/12
Suggested-by: Felix Fietkau <nbd@nbd.name>
Reported-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
(cherry picked from commit c8f8e59816)
2020-05-26 10:07:05 +01:00
..
apm821xx kernel: bump 4.14 to 4.14.176 2020-04-16 13:23:52 +02:00
ar71xx ar71xx: remove hard-coded folder name from Mikrotik RB upgrade 2020-05-12 17:48:02 +02:00
arc770 treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
archs38 treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
armvirt kernel: Remove CONFIG_COMPAT 2019-05-11 17:15:41 +02:00
at91 at91: disable legacy PTYs and virtual terminals 2019-12-17 11:27:20 +02:00
ath25 kernel: bump 4.14 to 4.14.171 2020-02-24 14:20:14 +01:00
ath79 ath79: add support for TP-Link TL-WA901ND v4 and v5 2020-05-20 21:06:48 +02:00
bcm53xx bcm53xx: add support for Luxul FullMAC WiFi devices 2020-04-07 15:51:11 +02:00
brcm47xx brcm47xx: disable Netgear WNR2000 v2 by default 2020-05-24 14:42:33 +02:00
brcm63xx bcm63xx: mask interrupts on init 2020-05-18 09:51:18 +02:00
brcm2708 kernel: bump 4.14 to 4.14.178 2020-05-04 21:05:21 +02:00
cns3xxx kernel: bump 4.14 to 4.14.156 2019-11-29 10:00:35 +01:00
gemini kernel: bump 4.14 to 4.14.156 2019-11-29 10:00:35 +01:00
generic generic: platform/mikrotik: disambiguate SPDX-License-Identifier 2020-05-20 20:01:53 +02:00
imx6 treewide: remove 4.19 leftovers 2019-10-08 12:45:13 +02:00
ipq40xx kernel: bump 4.14 to 4.14.172 2020-03-09 20:44:27 +01:00
ipq806x kernel: bump 4.14 to 4.14.172 2020-03-09 20:44:27 +01:00
kirkwood kirkwood: fix HDD LED labels for Zyxel NSA325 in 01_leds 2020-01-21 13:55:03 +01:00
lantiq kernel: bump 4.14 to 4.14.159 2019-12-24 15:29:32 +01:00
layerscape kernel: bump 4.14 to 4.14.178 2020-05-04 21:05:21 +02:00
malta malta: remove CONFIG_LEGACY_PTY from kernel config 2019-12-17 11:27:30 +02:00
mediatek kernel: bump 4.14 to 4.14.176 2020-04-16 13:23:52 +02:00
mpc85xx kernel: bump 4.14 to 4.14.171 2020-02-24 14:20:14 +01:00
mvebu mvebu: cortexa9: correct cpu subtype 2020-04-18 00:18:13 +02:00
mxs kernel: bump 4.14 to 4.14.178 2020-05-04 21:05:21 +02:00
octeon treewide: remove 4.19 leftovers 2019-10-08 12:45:13 +02:00
octeontx kernel: bump 4.14 to 4.14.176 2020-04-16 13:23:52 +02:00
omap treewide: use new procd sysupgrade $UPGRADE_BACKUP variable 2019-09-12 13:27:29 +02:00
oxnas kernel: bump 4.14 to 4.14.178 2020-05-04 21:05:21 +02:00
pistachio kernel: bump 4.14 to 4.14.171 2020-02-24 14:20:14 +01:00
ramips ramips: gsw_mt7621: disable PORT 5 MAC RX/TX flow control by default 2020-05-26 10:07:05 +01:00
rb532 kernel: bump 4.14 to 4.14.86 2018-12-10 11:48:44 +01:00
samsung kernel: Do not set CONFIG_DEVMEM or CONFIG_DEVKMEM 2019-05-11 17:15:41 +02:00
sunxi kernel: bump 4.14 to 4.14.169 2020-02-04 18:11:26 +01:00
tegra tegra: correct cpu subtype 2020-04-18 00:18:13 +02:00
uml uml: remove CONFIG_LEGACY_PTY from kernel config 2019-12-17 11:27:16 +02:00
x86 x86: fix missing led variable warning during boot 2020-01-06 08:40:06 +01:00
zynq zynq: make title consistent for all devices 2019-05-17 21:41:43 +02:00
Makefile