summaryrefslogtreecommitdiffstats
path: root/net/core/dev.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazt@google.com>2013-03-05 07:15:13 +0000
committerDavid S. Miller <davem@davemloft.net>2013-03-06 02:47:06 -0500
commitd1f41b67ff7735193bc8b418b98ac99a448833e2 (patch)
tree9491bf2f4dbf0617d7b2f6cecc08c54f62bf1c31 /net/core/dev.c
parent691b3b7e1329141acf1e5ed44d8b468cea065fe3 (diff)
downloadlinux-d1f41b67ff7735193bc8b418b98ac99a448833e2.tar.bz2
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)
* Allow this to run for 2 jiffies since which will allow
* an average latency of 1.5/HZ.
*/
- if (unlikely(budget <= 0 || time_after(jiffies, time_limit)))
+ if (unlikely(budget <= 0 || time_after_eq(jiffies, time_limit)))
goto softnet_break;
local_irq_enable();