diff options
author | Eric Dumazet <edumazt@google.com> | 2013-03-05 07:15:13 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-06 02:47:06 -0500 |
commit | d1f41b67ff7735193bc8b418b98ac99a448833e2 (patch) | |
tree | 9491bf2f4dbf0617d7b2f6cecc08c54f62bf1c31 /net | |
parent | 691b3b7e1329141acf1e5ed44d8b468cea065fe3 (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')
-rw-r--r-- | net/core/dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 5ca8734ae63..8f152f904f7 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(); |