Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cdec7e50 authored by David S. Miller's avatar David S. Miller
Browse files

Revert "pkt_sched: sch_sfq: dump a real number of flows"



This reverts commit f867e6af.

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: default avatarDavid S. Miller <davem@davemloft.net>
parent 509e2562
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -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);