OSDN Git Service

ucc_geth: Reset BQL queue when stopping device
authorMathias Thore <mathias.thore@infinera.com>
Mon, 28 Jan 2019 09:07:47 +0000 (10:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Feb 2019 18:43:06 +0000 (19:43 +0100)
commit3154a8ad0541dae3665a08b1c60f1c81ee7d5cd8
treedad13d21154fcf91bf070abed9ddd2b027744609
parent8034f3610b7840f58ffbacf2db49680a81779d6d
ucc_geth: Reset BQL queue when stopping device

[ Upstream commit e15aa3b2b1388c399c1a2ce08550d2cc4f7e3e14 ]

After a timeout event caused by for example a broadcast storm, when
the MAC and PHY are reset, the BQL TX queue needs to be reset as
well. Otherwise, the device will exhibit severe performance issues
even after the storm has ended.

Co-authored-by: David Gounaris <david.gounaris@infinera.com>
Signed-off-by: Mathias Thore <mathias.thore@infinera.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/freescale/ucc_geth.c