Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 225209
b: refs/heads/master
c: c426626
h: refs/heads/master
i:
  225207: 82d9c3e
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Dec 20, 2010
1 parent 108e0db commit af48ce5
Show file tree
Hide file tree
Showing 2 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: f955e1415f381c7fa6ebe8630cd1fe5a694e8f4a
refs/heads/master: c4266263249f22479eb1abb1a1709c38240b1597
7 changes: 6 additions & 1 deletion trunk/net/sched/sch_sfq.c
Original file line number Diff line number Diff line change
Expand Up @@ -548,8 +548,13 @@ static int sfq_dump_class_stats(struct Qdisc *sch, unsigned long cl,
{
struct sfq_sched_data *q = qdisc_priv(sch);
sfq_index idx = q->ht[cl-1];
struct gnet_stats_queue qs = { .qlen = q->qs[idx].qlen };
struct sk_buff_head *list = &q->qs[idx];
struct gnet_stats_queue qs = { .qlen = list->qlen };
struct tc_sfq_xstats xstats = { .allot = q->allot[idx] };
struct sk_buff *skb;

skb_queue_walk(list, skb)
qs.backlog += qdisc_pkt_len(skb);

if (gnet_stats_copy_queue(d, &qs) < 0)
return -1;
Expand Down

0 comments on commit af48ce5

Please sign in to comment.