openwrt/target/linux/ramips
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
..
base-files ramips: use tpt DTS trigger for TP-Link TL-MR3020 v3 and TL-WA801ND v5 2020-01-30 22:15:55 +01:00
dts ramips: drop non-existant ralink,port-map for Ravpower WD03 2020-05-19 11:34:57 +02:00
files-4.14/drivers ramips: gsw_mt7621: disable PORT 5 MAC RX/TX flow control by default 2020-05-26 10:07:05 +01:00
image ramips: remove unnecessary DEVICE_PACKAGES for Belkin F7C027 2020-04-27 22:38:47 +02:00
mt76x8 ramips: refresh all subtargets kernel configs 2019-11-24 17:49:35 +01:00
mt7620 ramips: refresh all subtargets kernel configs 2019-11-24 17:49:35 +01:00
mt7621 ramips: add support for ALFA Network Quad-E4G 2019-11-24 21:47:25 +01:00
patches-4.14 kernel: bump 4.14 to 4.14.178 2020-05-04 21:05:21 +02:00
rt288x ramips: refresh all subtargets kernel configs 2019-11-24 17:49:35 +01:00
rt305x ramips: refresh all subtargets kernel configs 2019-11-24 17:49:35 +01:00
rt3883 ramips: refresh all subtargets kernel configs 2019-11-24 17:49:35 +01:00
Makefile ramips: switch to linux 4.14 2018-04-06 18:07:43 +02:00
modules.mk kernel: Fix kmod-regmap split 2019-01-27 11:07:14 +01:00