drivers: net: ethernet: davinci_emac: use netif_wake_queue() while restarting tx...
authorMugunthan V N <mugunthanvnm@ti.com>
Wed, 27 Mar 2013 04:42:00 +0000 (04:42 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Apr 2013 17:04:40 +0000 (10:04 -0700)
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>
drivers/net/ethernet/ti/davinci_emac.c

index 08aff1a..43fada5 100644 (file)
@@ -1052,7 +1052,7 @@ static void emac_tx_handler(void *token, int len, int status)
        atomic_dec(&priv->cur_tx);
 
        if (unlikely(netif_queue_stopped(ndev)))
-               netif_start_queue(ndev);
+               netif_wake_queue(ndev);
        ndev->stats.tx_packets++;
        ndev->stats.tx_bytes += len;
        dev_kfree_skb_any(skb);