mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 20:46:48 +02:00
net: socionext: Reset tx queue in ndo_stop
[ Upstream commit8d5b0bf611] 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:533dd11a12("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>
This commit is contained in:
parent
3f8141b142
commit
cf5819b288
|
|
@ -940,6 +940,9 @@ static void netsec_uninit_pkt_dring(struct netsec_priv *priv, int id)
|
|||
dring->head = 0;
|
||||
dring->tail = 0;
|
||||
dring->pkt_cnt = 0;
|
||||
|
||||
if (id == NETSEC_RING_TX)
|
||||
netdev_reset_queue(priv->ndev);
|
||||
}
|
||||
|
||||
static void netsec_free_dring(struct netsec_priv *priv, int id)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user