diff options
author | Mugunthan V N <mugunthanvnm@ti.com> | 2013-03-27 04:41:59 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-04-05 10:04:40 -0700 |
commit | 71ec40e8f0a5eefca7b318f133f90dc4f2302c4f (patch) | |
tree | 3790a49b12117a10a522c0dbf6d9679d98aa3fee /drivers | |
parent | 86f1b8c36b64a22e4e21e542b99c8b9ef5e95694 (diff) | |
download | linux-3.10-71ec40e8f0a5eefca7b318f133f90dc4f2302c4f.tar.gz linux-3.10-71ec40e8f0a5eefca7b318f133f90dc4f2302c4f.tar.bz2 linux-3.10-71ec40e8f0a5eefca7b318f133f90dc4f2302c4f.zip |
drivers: net: ethernet: cpsw: use netif_wake_queue() while restarting tx queue
[ Upstream commit b56d6b3fca6d1214dbc9c5655f26e5d4ec04afc8 ]
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: Dan Franke <dan.franke@schneider-electric.com>
Suggested-by: Sriramakrishnan A G <srk@ti.com>
Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/ti/cpsw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index 6685bbb5705..310e353950e 100644 --- a/drivers/net/ethernet/ti/cpsw.c +++ b/drivers/net/ethernet/ti/cpsw.c @@ -249,7 +249,7 @@ void cpsw_tx_handler(void *token, int len, int status) struct cpsw_priv *priv = netdev_priv(ndev); if (unlikely(netif_queue_stopped(ndev))) - netif_start_queue(ndev); + netif_wake_queue(ndev); priv->stats.tx_packets++; priv->stats.tx_bytes += len; dev_kfree_skb_any(skb); |