* [PATCH net-next] sch_htb: report backlog information in htb classes
@ 2012-05-11 22:31 Eric Dumazet
2012-05-11 22:41 ` Eric Dumazet
0 siblings, 1 reply; 2+ messages in thread
From: Eric Dumazet @ 2012-05-11 22:31 UTC (permalink / raw)
To: David Miller; +Cc: netdev
From: Eric Dumazet <edumazet@google.com>
htb classes at level 0 can copy their qdisc child backlog to provide to
"tc -s class" users more relevant information. (packet counter is
correct but byte counter (backlog) is 0)
Signed-off-by: Eric Dumazet <edumazet@google.com>
---
net/sched/sch_htb.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/net/sched/sch_htb.c b/net/sched/sch_htb.c
index 9d75b77..0f4d534 100644
--- a/net/sched/sch_htb.c
+++ b/net/sched/sch_htb.c
@@ -1073,9 +1073,10 @@ static int htb_dump_class(struct Qdisc *sch, unsigned long arg,
spin_lock_bh(root_lock);
tcm->tcm_parent = cl->parent ? cl->parent->common.classid : TC_H_ROOT;
tcm->tcm_handle = cl->common.classid;
- if (!cl->level && cl->un.leaf.q)
+ if (!cl->level && cl->un.leaf.q) {
tcm->tcm_info = cl->un.leaf.q->handle;
-
+ sch->qstats.backlog = cl->un.leaf.q->qstats.backlog;
+ }
nest = nla_nest_start(skb, TCA_OPTIONS);
if (nest == NULL)
goto nla_put_failure;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] sch_htb: report backlog information in htb classes
2012-05-11 22:31 [PATCH net-next] sch_htb: report backlog information in htb classes Eric Dumazet
@ 2012-05-11 22:41 ` Eric Dumazet
0 siblings, 0 replies; 2+ messages in thread
From: Eric Dumazet @ 2012-05-11 22:41 UTC (permalink / raw)
To: David Miller; +Cc: netdev
On Sat, 2012-05-12 at 00:31 +0200, Eric Dumazet wrote:
> From: Eric Dumazet <edumazet@google.com>
>
> htb classes at level 0 can copy their qdisc child backlog to provide to
> "tc -s class" users more relevant information. (packet counter is
> correct but byte counter (backlog) is 0)
>
> Signed-off-by: Eric Dumazet <edumazet@google.com>
> ---
> net/sched/sch_htb.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
Please disregard this patch, more work is needed.
Thanks
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-05-11 22:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-11 22:31 [PATCH net-next] sch_htb: report backlog information in htb classes Eric Dumazet
2012-05-11 22:41 ` Eric Dumazet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox