diff options
author | David S. Miller <davem@davemloft.net> | 2008-07-26 05:28:09 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-26 05:28:09 -0400 |
commit | cdec7e50a4896c5197d5575d9ca635eea6825149 (patch) | |
tree | 0071b43c923cd73b4a5d2d09fbb876ed39a3a06d /net/sched/sch_sfq.c | |
parent | 509e2562adfd63964aa30c1ddd9ddf4e57949351 (diff) |
Revert "pkt_sched: sch_sfq: dump a real number of flows"
This reverts commit f867e6af94239a04ec23aeec2fcda5aa58e41db7.
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>
Diffstat (limited to 'net/sched/sch_sfq.c')
-rw-r--r-- | net/sched/sch_sfq.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/net/sched/sch_sfq.c b/net/sched/sch_sfq.c index 73f53844ce9..8589da66656 100644 --- a/net/sched/sch_sfq.c +++ b/net/sched/sch_sfq.c | |||
@@ -536,14 +536,7 @@ static int sfq_dump(struct Qdisc *sch, struct sk_buff *skb) | |||
536 | 536 | ||
537 | opt.limit = q->limit; | 537 | opt.limit = q->limit; |
538 | opt.divisor = SFQ_HASH_DIVISOR; | 538 | opt.divisor = SFQ_HASH_DIVISOR; |
539 | opt.flows = 0; | 539 | opt.flows = q->limit; |
540 | if (q->tail != SFQ_DEPTH) { | ||
541 | unsigned int i; | ||
542 | |||
543 | for (i = 0; i < SFQ_HASH_DIVISOR; i++) | ||
544 | if (q->ht[i] != SFQ_DEPTH) | ||
545 | opt.flows++; | ||
546 | } | ||
547 | 540 | ||
548 | NLA_PUT(skb, TCA_OPTIONS, sizeof(opt), &opt); | 541 | NLA_PUT(skb, TCA_OPTIONS, sizeof(opt), &opt); |
549 | 542 | ||