Commit 71ec40e8 authored by Mugunthan V N's avatar Mugunthan V N Committed by Greg Kroah-Hartman

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

[ Upstream commit b56d6b3f ]

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>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 86f1b8c3
...@@ -249,7 +249,7 @@ void cpsw_tx_handler(void *token, int len, int status) ...@@ -249,7 +249,7 @@ void cpsw_tx_handler(void *token, int len, int status)
struct cpsw_priv *priv = netdev_priv(ndev); struct cpsw_priv *priv = netdev_priv(ndev);
if (unlikely(netif_queue_stopped(ndev))) if (unlikely(netif_queue_stopped(ndev)))
netif_start_queue(ndev); netif_wake_queue(ndev);
priv->stats.tx_packets++; priv->stats.tx_packets++;
priv->stats.tx_bytes += len; priv->stats.tx_bytes += len;
dev_kfree_skb_any(skb); dev_kfree_skb_any(skb);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment