Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
patches/net/0004-drivers-net-ethernet-davinci_emac-use-netif_wake_que.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
From 6b39fbb57748a5d5a69907688e7fb8058d4d2e0b Mon Sep 17 00:00:00 2001 | ||
From: Mugunthan V N <mugunthanvnm@ti.com> | ||
Date: Wed, 27 Mar 2013 04:42:00 +0000 | ||
Subject: [PATCH 4/4] drivers: net: ethernet: davinci_emac: 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: 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> | ||
--- | ||
drivers/net/ethernet/ti/davinci_emac.c | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/drivers/net/ethernet/ti/davinci_emac.c b/drivers/net/ethernet/ti/davinci_emac.c | ||
index 2a3e2c5..4ebcb24 100644 | ||
--- a/drivers/net/ethernet/ti/davinci_emac.c | ||
+++ b/drivers/net/ethernet/ti/davinci_emac.c | ||
@@ -1055,7 +1055,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); | ||
-- | ||
1.8.1.4 | ||
|