Revert "pkt_sched: sch_sfq: dump a real number of flows"
authorDavid S. Miller <davem@davemloft.net>
Sat, 26 Jul 2008 09:28:09 +0000 (02:28 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Jul 2008 09:28:09 +0000 (02:28 -0700)
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>
net/sched/sch_sfq.c

index 73f53844ce976128f35a59663d2a9b3f13ed254f..8589da666568b50fc47ac1a2c280a0a96c92a5f3 100644 (file)
@@ -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);