openwrt/target/linux/ramips
Petr Štetiar c8f8e59816 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>
2020-02-20 15:08:06 +01:00
..
base-files ramips: move set-irq-affinity script to mt7621 subtarget 2020-01-03 00:08:35 +01:00
dts ramips: fix device name of netis WF-2881 to WF2881 2020-02-07 14:33:17 +01:00
files-4.14/drivers ramips: gsw_mt7621: disable PORT 5 MAC RX/TX flow control by default 2020-02-20 15:08:06 +01:00
image ramips: append tail to WF2881 initramfs image 2020-02-11 15:13:52 +01:00
mt76x8 ramips: fix HiWiFi HC5761A switch settings 2020-02-14 14:10:51 +01:00
mt7620 ramips: convert TP-Link MT7620 boards to tpt trigger 2020-01-02 21:41:58 +01:00
mt7621 ramips: fix device name of netis WF-2881 to WF2881 2020-02-07 14:33:17 +01:00
patches-4.14 kernel: bump 4.14 to 4.14.169 2020-02-04 18:10:13 +01:00
rt288x ramips: rt288x: use flash location for wan_mac in 02_network 2019-12-12 13:11:49 +01:00
rt305x ramips: rt305x: use flash location for wan_mac in 02_network 2019-12-12 13:11:58 +01:00
rt3883 ramips: fix USB LED for Belkin F9K1109v1 2019-12-20 15:54:33 +01:00
Makefile ramips: switch to linux 4.14 2018-04-06 18:07:43 +02:00
modules.mk kernel: fix typos in KernelPackage description 2020-02-08 17:58:38 +01:00