android_kernel_motorola_sm6375/drivers/net
Repository files (latest commit first)
Filename Latest commit message Latest commit date
René van Dorst 0ec037c135 net: dsa: mt7530: Change the LINK bit to reflect the link status
[ Upstream commit 22259471b51925353bd7b16f864c79fdd76e425e ]

Andrew reported:

After a number of network port link up/down changes, sometimes the switch
port gets stuck in a state where it thinks it is still transmitting packets
but the cpu port is not actually transmitting anymore. In this state you
will see a message on the console
"mtk_soc_eth 1e100000.ethernet eth0: transmit timed out" and the Tx counter
in ifconfig will be incrementing on virtual port, but not incrementing on
cpu port.

The issue is that MAC TX/RX status has no impact on the link status or
queue manager of the switch. So the queue manager just queues up packets
of a disabled port and sends out pause frames when the queue is full.

Change the LINK bit to reflect the link status.

Fixes: b8f126a8d5 ("net-next: dsa: add dsa support for Mediatek MT7530 switch")
Reported-by: Andrew Smith <[email protected]>
Signed-off-by: René van Dorst <[email protected]>
Reviewed-by: Vivien Didelot <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2020-04-01 11:01:33 +02:00
..
appletalk
arcnet
bonding bonding/alb: make sure arp header is pulled before accessing it 2020-03-18 07:17:42 +01:00
caif
can can: add missing attribute validation for termination 2020-03-18 07:17:44 +01:00
dsa net: dsa: mt7530: Change the LINK bit to reflect the link status 2020-04-01 11:01:33 +02:00
ethernet mlxsw: spectrum_mr: Fix list iteration in error path 2020-04-01 11:01:32 +02:00
fddi
fjes
hamradio 6pack,mkiss: fix possible deadlock 2020-01-04 19:18:36 +01:00
hippi
hyperv hv_netvsc: Fix unwanted wakeup in netvsc_attach() 2020-03-05 16:43:46 +01:00
ieee802154
ipvlan ipvlan: don't deref eth hdr before checking it's set 2020-03-18 07:17:39 +01:00
netdevsim netdevsim: fix stack-out-of-bounds in nsim_dev_debugfs_init() 2020-02-11 04:35:06 -08:00
phy net: phy: mscc: fix firmware paths 2020-03-21 08:11:53 +01:00
plip
ppp ppp: Adjust indentation into ppp_async_input 2020-02-11 04:35:46 -08:00
slip slip: not call free_netdev before rtnl_unlock in slip_open 2020-03-21 08:11:53 +01:00
team team: add missing attribute validation for array index 2020-03-18 07:17:45 +01:00
usb net: usb: qmi_wwan: restore mtu min/max values after raw_ip switch 2020-03-21 08:11:50 +01:00
vmxnet3
wan wan: ixp4xx_hss: fix compile-testing on 64-bit 2020-02-24 08:36:46 +01:00
wimax
wireless mt76: fix array overflow on receiving too many fragments for a packet 2020-03-18 07:17:53 +01:00
xen-netback
dummy.c
eql.c
geneve.c geneve: move debug check after netdev unregister 2020-04-01 11:01:31 +02:00
gtp.c gtp: use __GFP_NOWARN to avoid memalloc warning 2020-02-11 04:35:04 -08:00
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macsec.c macsec: restrict to ethernet devices 2020-04-01 11:01:32 +02:00
macvlan.c macvlan: add cond_resched() during multicast processing 2020-03-18 07:17:39 +01:00
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 tun: add mutex_unlock() call and napi.skb clearing in tun_get_user() 2020-01-29 16:45:22 +01:00
veth.c
virtio_net.c
vrf.c
vsockmon.c
vxlan.c vxlan: fix tos value before xmit 2020-01-12 12:21:49 +01:00
xen-netfront.c