X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=net%2Fsched%2Fsch_sfq.c;h=8589da666568b50fc47ac1a2c280a0a96c92a5f3;hb=f8e79ddd31c3615ddca26b9a469c44a7adbd4e13;hp=73f53844ce976128f35a59663d2a9b3f13ed254f;hpb=b5684b83b1e1579bbbc80e703e990c0cccf5892c;p=linux-2.6 diff --git a/net/sched/sch_sfq.c b/net/sched/sch_sfq.c index 73f53844ce..8589da6665 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) 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);