aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/dev.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazt@google.com>2013-03-05 02:15:13 -0500
committerDavid S. Miller <davem@davemloft.net>2013-03-06 02:47:06 -0500
commitd1f41b67ff7735193bc8b418b98ac99a448833e2 (patch)
tree9491bf2f4dbf0617d7b2f6cecc08c54f62bf1c31 /net/core/dev.c
parent691b3b7e1329141acf1e5ed44d8b468cea065fe3 (diff)
net: reduce net_rx_action() latency to 2 HZ
We should use time_after_eq() to get maximum latency of two ticks, instead of three. Bug added in commit 24f8b2385 (net: increase receive packet quantum) Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/dev.c')
-rw-r--r--net/core/dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 5ca8734ae63a..8f152f904f70 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -4103,7 +4103,7 @@ static void net_rx_action(struct softirq_action *h)
4103 * Allow this to run for 2 jiffies since which will allow 4103 * Allow this to run for 2 jiffies since which will allow
4104 * an average latency of 1.5/HZ. 4104 * an average latency of 1.5/HZ.
4105 */ 4105 */
4106 if (unlikely(budget <= 0 || time_after(jiffies, time_limit))) 4106 if (unlikely(budget <= 0 || time_after_eq(jiffies, time_limit)))
4107 goto softnet_break; 4107 goto softnet_break;
4108 4108
4109 local_irq_enable(); 4109 local_irq_enable();