[PATCH] Re: Possible regression in HTB

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jarek Poplawski
Date: Wednesday, October 8, 2008 - 12:46 am

On Wed, Oct 08, 2008 at 10:06:38AM +0300, Denys Fedoryshchenko wrote:

Right, that's why stats from the other host could differ and these
tc stats mentioned by Patrick could be useful.

BTW, current requeuing isn't true requeuing, but we should have some
info about this, so something like this patch is needed.

Jarek P.

-------------->

pkt_sched: Update qdisc requeue stats in dev_requeue_skb()

After the last change of requeuing there is no info about such
incidents in tc stats. This patch updates the counter, but we should
consider this should differ from previous stats because of additional
checks preventing to repeat this. On the other hand, previous stats
didn't include requeuing of gso_segmented skbs.

Signed-off-by: Jarek Poplawski <jarkao2@gmail.com>

---

 net/sched/sch_generic.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c
index 31f6b61..7b5572d 100644
--- a/net/sched/sch_generic.c
+++ b/net/sched/sch_generic.c
@@ -45,6 +45,7 @@ static inline int qdisc_qlen(struct Qdisc *q)
 static inline int dev_requeue_skb(struct sk_buff *skb, struct Qdisc *q)
 {
 	q->gso_skb = skb;
+	q->qstats.requeues++;
 	__netif_schedule(q);
 
 	return 0;
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Possible regression in HTB, Simon Horman, (Mon Oct 6, 6:15 pm)
Re: Possible regression in HTB, Simon Horman, (Mon Oct 6, 9:51 pm)
Re: Possible regression in HTB, Jarek Poplawski, (Tue Oct 7, 12:44 am)
Re: Possible regression in HTB, Patrick McHardy, (Tue Oct 7, 5:03 am)
Re: Possible regression in HTB, Jarek Poplawski, (Tue Oct 7, 5:20 am)
Re: Possible regression in HTB, Patrick McHardy, (Tue Oct 7, 5:48 am)
Re: Possible regression in HTB, Jarek Poplawski, (Tue Oct 7, 3:00 pm)
Re: Possible regression in HTB, Simon Horman, (Tue Oct 7, 5:09 pm)
Re: Possible regression in HTB, Simon Horman, (Tue Oct 7, 5:10 pm)
Re: Possible regression in HTB, Simon Horman, (Tue Oct 7, 5:21 pm)
Re: Possible regression in HTB, Patrick McHardy, (Tue Oct 7, 5:31 pm)
Re: Possible regression in HTB, Patrick McHardy, (Tue Oct 7, 5:40 pm)
Re: Possible regression in HTB, Jarek Poplawski, (Tue Oct 7, 11:37 pm)
Re: Possible regression in HTB, Jarek Poplawski, (Tue Oct 7, 11:55 pm)
Re: Possible regression in HTB, Denys Fedoryshchenko, (Wed Oct 8, 12:06 am)
Re: Possible regression in HTB, Simon Horman, (Wed Oct 8, 12:22 am)
Re: Possible regression in HTB, Simon Horman, (Wed Oct 8, 12:22 am)
Re: Possible regression in HTB, Martin Devera, (Wed Oct 8, 12:34 am)
[PATCH] Re: Possible regression in HTB, Jarek Poplawski, (Wed Oct 8, 12:46 am)
Re: Possible regression in HTB, Jarek Poplawski, (Wed Oct 8, 12:53 am)
Re: Possible regression in HTB, Jarek Poplawski, (Wed Oct 8, 1:03 am)
Re: Possible regression in HTB, Jarek Poplawski, (Wed Oct 8, 1:53 am)
Re: Possible regression in HTB, Martin Devera, (Wed Oct 8, 3:47 am)
Re: Possible regression in HTB, Jarek Poplawski, (Wed Oct 8, 5:04 am)
Re: [PATCH] Re: Possible regression in HTB, David Miller, (Wed Oct 8, 11:36 am)
Re: Possible regression in HTB, Simon Horman, (Wed Oct 8, 5:54 pm)
Re: Possible regression in HTB, Simon Horman, (Wed Oct 8, 6:09 pm)
Re: Possible regression in HTB, Jarek Poplawski, (Wed Oct 8, 11:21 pm)
Re: Possible regression in HTB, Martin Devera, (Wed Oct 8, 11:22 pm)
Re: Possible regression in HTB, Martin Devera, (Wed Oct 8, 11:53 pm)
Re: Possible regression in HTB, Jarek Poplawski, (Thu Oct 9, 2:56 am)
Re: Possible regression in HTB, Jarek Poplawski, (Thu Oct 9, 3:14 am)
Re: Possible regression in HTB, Martin Devera, (Thu Oct 9, 3:52 am)
Re: Possible regression in HTB, Jarek Poplawski, (Thu Oct 9, 4:04 am)
Re: Possible regression in HTB, Simon Horman, (Thu Oct 9, 4:11 am)
Re: Possible regression in HTB, Simon Horman, (Thu Oct 9, 4:18 am)
Re: Possible regression in HTB, Martin Devera, (Thu Oct 9, 4:22 am)
Re: Possible regression in HTB, Patrick McHardy, (Thu Oct 9, 4:58 am)
Re: Possible regression in HTB, Jarek Poplawski, (Thu Oct 9, 5:36 am)
Re: Possible regression in HTB, Jarek Poplawski, (Thu Oct 9, 11:59 pm)
Re: Possible regression in HTB, Jarek Poplawski, (Fri Oct 10, 1:57 am)
Re: Possible regression in HTB, Jarek Poplawski, (Fri Oct 10, 5:12 am)