Subject: Re: [NET_SCHED 03/06]: Fix endless loops caused by inaccurate qlen counters (part 1)

From: Patrick McHardy <[email-masked]>
Date: Mon, 20 Nov 2006 15:31:13 +0100

Mika Penttilä wrote:
> Are you sure you didn't mean to :
> 
> +    while ((parentid = sch->parent)) {
> +        sch = __qdisc_lookup(sch->dev, TC_H_MAJ(parentid));
> +        cops = sch->ops->cl_ops;
> +        if (!(sch->q.qlen -= n) && cops->qlen_notify) {    <----

We could do that, currently the qdiscs check themselves.
The idea was mainly that they could be interested in
other changes as well, for example for recalculating
a deadline when the next packet in line changes.