aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/sch_multiq.c
diff options
context:
space:
mode:
authorJarek Poplawski <jarkao2@gmail.com>2009-09-17 10:26:07 -0700
committerDavid S. Miller <davem@davemloft.net>2009-09-17 10:26:07 -0700
commita19d2158439d6fba8160d7d2446f233f525f09e7 (patch)
tree85f54105fb6939efac2c26c3a08db7e543141b6d /net/sched/sch_multiq.c
parent0522fea6505f7b03a82787acdc6ad3066d9b4de3 (diff)
downloadkernel_samsung_aries-a19d2158439d6fba8160d7d2446f233f525f09e7.zip
kernel_samsung_aries-a19d2158439d6fba8160d7d2446f233f525f09e7.tar.gz
kernel_samsung_aries-a19d2158439d6fba8160d7d2446f233f525f09e7.tar.bz2
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_multiq.c')
-rw-r--r--net/sched/sch_multiq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sched/sch_multiq.c b/net/sched/sch_multiq.c
index 069f81c..7db2c88 100644
--- a/net/sched/sch_multiq.c
+++ b/net/sched/sch_multiq.c
@@ -359,6 +359,7 @@ static int multiq_dump_class_stats(struct Qdisc *sch, unsigned long cl,
struct Qdisc *cl_q;
cl_q = q->queues[cl - 1];
+ cl_q->qstats.qlen = cl_q->q.qlen;
if (gnet_stats_copy_basic(d, &cl_q->bstats) < 0 ||
gnet_stats_copy_queue(d, &cl_q->qstats) < 0)
return -1;