]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net: socionext: Reset tx queue in ndo_stop
authorMasahisa Kojima <masahisa.kojima@linaro.org>
Tue, 23 Oct 2018 11:24:28 +0000 (20:24 +0900)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:58:09 +0000 (19:58 -0600)
commit9f25344f784606c8cdc971835536feb9552d1d3a
tree289096d4239a23129f98980d7e68c11d38ec06f8
parent38e762b4cb6f98546f744ea54790471bd9ddb3fb
net: socionext: Reset tx queue in ndo_stop

BugLink: https://bugs.launchpad.net/bugs/1836802
[ Upstream commit 8d5b0bf611ec5b7618d5b772dddc93b8afa78cb8 ]

We observed that packets and bytes count are not reset
when user performs interface down. Eventually, tx queue is
exhausted and packets will not be sent out.
To avoid this problem, resets tx queue in ndo_stop.

Fixes: 533dd11a12f6 ("net: socionext: Add Synquacer NetSec driver")
Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>
Signed-off-by: Yoshitoyo Osaki <osaki.yoshitoyo@socionext.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/ethernet/socionext/netsec.c