]> Git Repo - linux.git/commitdiff
drivers: net: ethernet: davinci_emac: use netif_wake_queue() while restarting tx...
authorMugunthan V N <[email protected]>
Wed, 27 Mar 2013 04:42:00 +0000 (04:42 +0000)
committerDavid S. Miller <[email protected]>
Wed, 27 Mar 2013 18:06:40 +0000 (14:06 -0400)
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 <[email protected]>
Suggested-by: Sriramakrishnan A G <[email protected]>
Signed-off-by: Mugunthan V N <[email protected]>
Acked-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/ti/davinci_emac.c

index ae1b77aa199f87ab947c185b552d9274266dac91..72300bc9e3783842ef3608be24f0f33d2ed0f69b 100644 (file)
@@ -1053,7 +1053,7 @@ static void emac_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);
        ndev->stats.tx_packets++;
        ndev->stats.tx_bytes += len;
        dev_kfree_skb_any(skb);
This page took 0.059858 seconds and 4 git commands to generate.