Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 105581
b: refs/heads/master
c: f867e6a
h: refs/heads/master
i:
  105579: a0b49f1
v: v3
  • Loading branch information
Jarek Poplawski authored and David S. Miller committed Jul 24, 2008
1 parent 343e1c5 commit b97f4ed
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 6f75a9b6426e686649ac440c37ec7c249501f9a5
refs/heads/master: f867e6af94239a04ec23aeec2fcda5aa58e41db7
9 changes: 8 additions & 1 deletion trunk/net/sched/sch_sfq.c
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,14 @@ static int sfq_dump(struct Qdisc *sch, struct sk_buff *skb)

opt.limit = q->limit;
opt.divisor = SFQ_HASH_DIVISOR;
opt.flows = q->limit;
opt.flows = 0;
if (q->tail != SFQ_DEPTH) {
unsigned int i;

for (i = 0; i < SFQ_HASH_DIVISOR; i++)
if (q->ht[i] != SFQ_DEPTH)
opt.flows++;
}

NLA_PUT(skb, TCA_OPTIONS, sizeof(opt), &opt);

Expand Down

0 comments on commit b97f4ed

Please sign in to comment.