netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: reduce net_rx_action() latency to 2 HZ
@ 2013-03-05 17:15 Eric Dumazet
  2013-03-21 15:03 ` Paul Gortmaker
  0 siblings, 1 reply; 7+ messages in thread
From: Eric Dumazet @ 2013-03-05 17:15 UTC (permalink / raw)
  To: David Miller; +Cc: netdev

From: Eric Dumazet <edumazt@google.com>

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 <edumazt@google.com>
---
 net/core/dev.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/core/dev.c b/net/core/dev.c
index 18d8b5a..461b315 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -4107,7 +4107,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();

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-03-24  1:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-05 17:15 [PATCH] net: reduce net_rx_action() latency to 2 HZ Eric Dumazet
2013-03-21 15:03 ` Paul Gortmaker
2013-03-21 15:27   ` Eric Dumazet
2013-03-21 17:25     ` Paul Gortmaker
2013-03-21 17:43       ` Eric Dumazet
2013-03-21 18:45         ` Steven Rostedt
2013-03-24  1:02       ` Willy Tarreau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).