Skip to content

Commit

Permalink
Revert "pkt_sched: sch_sfq: dump a real number of flows"
Browse files Browse the repository at this point in the history
This reverts commit f867e6a.

Based upon discussions between Jarek and Patrick McHardy
this is field being set is more a config parameter than a
statistic.  And we should add a true statistic to provide
this information if we really want it.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Jul 26, 2008
1 parent 509e256 commit cdec7e5
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions net/sched/sch_sfq.c
Original file line number Diff line number Diff line change
Expand Up @@ -536,14 +536,7 @@ static int sfq_dump(struct Qdisc *sch, struct sk_buff *skb)

opt.limit = q->limit;
opt.divisor = SFQ_HASH_DIVISOR;
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++;
}
opt.flows = q->limit;

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

Expand Down

0 comments on commit cdec7e5

Please sign in to comment.