CoDel AQM discussions
 help / color / mirror / Atom feed
* Re: [Codel] Fwd: Re: "Controlling Queue Delay" article...
       [not found]         ` <1336487895.3752.2413.camel@edumazet-glaptop>
@ 2012-05-08 14:47           ` Jim Gettys
  0 siblings, 0 replies; only message in thread
From: Jim Gettys @ 2012-05-08 14:47 UTC (permalink / raw)
  To: Eric Dumazet, codel

On 05/08/2012 10:38 AM, Eric Dumazet wrote:
Let's try to keep things on list...
                - Jim

> On Mon, 2012-05-07 at 20:06 -0700, Kathleen Nichols wrote:
>> Okay, some more tweaks or fixes. I'm finally going through code slowly
>> and also
>> traces from sims. This fix makes it act more like the code I used to do
>> all those
>> sims. mea culpa, but hey, you guys pushed us, so caveat emptor.
>>
>> in dodqueue:
>>
>> dodeque_result codel_queue_t::dodeque(time_t now)
>> {
>>       dodeque_result r = { 0, queue::deque() };
>>       if (r.p == NULL) {
>>             first_above_time = 0;
>>       } else {
>>             time_t sojourn_time = now - r.p->tstamp;
>>             if (sojourn_time < target) {
>>                   // went below so we'll stay below for at least interval
>>                   first_above_time = 0;
>>             } else {
>>                   if (first_above_time == 0) {
>>                         // just went above from below. if we stay above
>>                         // for at least interval we'll say it's ok to drop
>>                         first_above_time = now + interval;
>>                   } else if (now >= first_above_time && bytes() >=
>> maxpacket) {
>>                         r.ok_to_drop = 1;
>>                   }
>>             }
>>       }
>>       return r;
>> }
>
> Ack, I will change our code to match this.
>
> Thanks
>
>


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-05-08 14:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <FA01AD85-0547-4824-8D86-92E78DB29913@gmail.com>
     [not found] ` <4FA7FBB4.3070900@freedesktop.org>
     [not found]   ` <4FA8201D.9030407@pollere.com>
     [not found]     ` <CAA93jw4mYQECJV6O1ONoe0y0+Efeu-a+QeZUiPmWVc===ncvEA@mail.gmail.com>
     [not found]       ` <4FA88DD1.6020607@pollere.com>
     [not found]         ` <1336487895.3752.2413.camel@edumazet-glaptop>
2012-05-08 14:47           ` [Codel] Fwd: Re: "Controlling Queue Delay" article Jim Gettys

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox