[Codel] [PATCH v8] pkt_sched: codel: Controlled Delay AQM
Eric Dumazet
eric.dumazet at gmail.com
Sun May 6 15:51:54 EDT 2012
On Sun, 2012-05-06 at 20:53 +0200, Eric Dumazet wrote:
> Some stuff added for stats and timing based on u32 fields to ease time
> compare.
>
> An optimization for 64bit arches in calc() to avoid 16 loops to prescale
> values.
...
> +#define codel_time_after(a, b) ((int)(a) - (int)(b) > 0)
> +#define codel_time_after_eq(a, b) ((int)(a) - (int)(b) >= 0)
> +#define codel_time_before(a, b) ((int)(a) - (int)(b) < 0)
> +#define codel_time_before_eq(a, b) ((int)(a) - (int)(b) >= 0)
> +
before_eq() is wrong here (but not used in this file)
More information about the Codel
mailing list