Message ID | 1336775494.31653.297.camel@edumazet-glaptop |
---|---|
State | Deferred, archived |
Delegated to: | David Miller |
Headers | show |
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 -- 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
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;