[Cake] [PATCH] Keep an internal counter for total queue length

Jonathan Morton chromatix99 at gmail.com
Fri Jul 6 08:45:34 EDT 2018


> On 6 Jul, 2018, at 3:00 pm, Toke Høiland-Jørgensen <toke at toke.dk> wrote:
> 
> Toke Høiland-Jørgensen <toke at toke.dk> writes:
> 
>> Since sch->q.qlen can be changed from outside cake, we can't rely on it for
>> break loops etc. So keep an internal counter that mirrors it and use that
>> for all checks.
> 
> Sent this as a patch to avoid stepping on your toes if you are working
> on the code now :)

I'm handling it without using any extra permanent state, just making use of what's already there.  Take a look at latest commit.

 - Jonathan Morton




More information about the Cake mailing list