Subject: Re: [NET_SCHED 01/11]: sch_netem: fix off-by-one in send time comparison

From: Stephen Hemminger <[email-masked]>
Date: Fri, 23 Mar 2007 09:34:35 -0700

On Fri, 23 Mar 2007 14:35:40 +0100 (MET)
Patrick McHardy <[email-masked]> wrote:

> [NET_SCHED]: sch_netem: fix off-by-one in send time comparison
> 
> netem checks PSCHED_TLESS(cb->time_to_send, now) to find out whether it is
> allowed to send a packet, which is equivalent to cb->time_to_send < now.
> Use !PSCHED_TLESS(now, cb->time_to_send) instead to properly handle
> cb->time_to_send == now.
> 
> Signed-off-by: Patrick McHardy <[email-masked]>
>

Thanks, I saw that earlier in another spot and fixed it.

-- 
Stephen Hemminger <[email-masked]>