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

Commit b56d6b3f authored by Mugunthan V N's avatar Mugunthan V N Committed by David S. Miller
Browse files

drivers: net: ethernet: cpsw: use netif_wake_queue() while restarting tx queue



To restart tx queue use netif_wake_queue() intead of netif_start_queue()
so that net schedule will restart transmission immediately which will
increase network performance while doing huge data transfers.

Reported-by: default avatarDan Franke <dan.franke@schneider-electric.com>
Suggested-by: default avatarSriramakrishnan A G <srk@ti.com>
Signed-off-by: default avatarMugunthan V N <mugunthanvnm@ti.com>
Acked-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent fcca143d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -436,7 +436,7 @@ void cpsw_tx_handler(void *token, int len, int status)
	 * queue is stopped then start the queue as we have free desc for tx
	 */
	if (unlikely(netif_queue_stopped(ndev)))
		netif_start_queue(ndev);
		netif_wake_queue(ndev);
	cpts_tx_timestamp(priv->cpts, skb);
	priv->stats.tx_packets++;
	priv->stats.tx_bytes += len;