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

2007-03-23 Thread Stephen Hemminger
On Fri, 23 Mar 2007 14:35:40 +0100 (MET) Patrick McHardy [EMAIL PROTECTED] 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.

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

2007-03-23 Thread Patrick McHardy
[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 ==