Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8d5b0bf6 authored by Masahisa Kojima's avatar Masahisa Kojima Committed by David S. Miller
Browse files

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: 533dd11a ("net: socionext: Add Synquacer NetSec driver")
Signed-off-by: default avatarMasahisa Kojima <masahisa.kojima@linaro.org>
Signed-off-by: default avatarYoshitoyo Osaki <osaki.yoshitoyo@socionext.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a3241a91
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -955,6 +955,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)