Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 162925
b: refs/heads/master
c: a19d215
h: refs/heads/master
i:
  162923: 6c08351
v: v3
  • Loading branch information
Jarek Poplawski authored and David S. Miller committed Sep 17, 2009
1 parent b852644 commit 745672b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0522fea6505f7b03a82787acdc6ad3066d9b4de3
refs/heads/master: a19d2158439d6fba8160d7d2446f233f525f09e7
4 changes: 3 additions & 1 deletion trunk/net/sched/sch_drr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ||
Expand Down
1 change: 1 addition & 0 deletions trunk/net/sched/sch_mq.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ static int mq_dump_class_stats(struct Qdisc *sch, unsigned long cl,
struct netdev_queue *dev_queue = mq_queue_get(sch, cl);

sch = dev_queue->qdisc_sleeping;
sch->qstats.qlen = sch->q.qlen;
if (gnet_stats_copy_basic(d, &sch->bstats) < 0 ||
gnet_stats_copy_queue(d, &sch->qstats) < 0)
return -1;
Expand Down
1 change: 1 addition & 0 deletions trunk/net/sched/sch_multiq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions trunk/net/sched/sch_prio.c
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ static int prio_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;
Expand Down

0 comments on commit 745672b

Please sign in to comment.