diff options
author | Jarek Poplawski <jarkao2@gmail.com> | 2009-09-17 19:26:07 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-09-17 19:26:07 +0200 |
commit | a19d2158439d6fba8160d7d2446f233f525f09e7 (patch) | |
tree | 85f54105fb6939efac2c26c3a08db7e543141b6d /net/sched/sch_drr.c | |
parent | ipv6: Log the affected address when DAD failure occurs (diff) | |
download | linux-a19d2158439d6fba8160d7d2446f233f525f09e7.tar.xz linux-a19d2158439d6fba8160d7d2446f233f525f09e7.zip |
pkt_sched: Fix qstats.qlen updating in dump_stats
Some classful qdiscs miss qstats.qlen updating with q.qlen of their
child qdiscs in dump_stats methods.
Signed-off-by: Jarek Poplawski <jarkao2@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_drr.c')
-rw-r--r-- | net/sched/sch_drr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/sched/sch_drr.c b/net/sched/sch_drr.c index 12b2fb04b29b..5a888af7e5da 100644 --- a/net/sched/sch_drr.c +++ b/net/sched/sch_drr.c @@ -274,8 +274,10 @@ static int drr_dump_class_stats(struct Qdisc *sch, unsigned long arg, struct tc_drr_stats xstats; memset(&xstats, 0, sizeof(xstats)); - if (cl->qdisc->q.qlen) + if (cl->qdisc->q.qlen) { xstats.deficit = cl->deficit; + cl->qdisc->qstats.qlen = cl->qdisc->q.qlen; + } if (gnet_stats_copy_basic(d, &cl->bstats) < 0 || gnet_stats_copy_rate_est(d, &cl->rate_est) < 0 || |