]> git.baikalelectronics.ru Git - 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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Oct 2018 17:55:35 +0000 (10:55 -0700)
commit3a44c453085472b1801c22c5c9d17e2e97fb22c8
tree52f5d7e199ab7b77ef6c22be72a3b680899a6863
parent3a0782a5baaac20c2c54e901d6097d73d1d7b177
net: socionext: Reset tx queue in ndo_stop

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: 0d326cdbc883 ("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>
drivers/net/ethernet/socionext/netsec.c