[NET_SCHED]: sch_netem: fix off-by-one in send time comparison
authorPatrick McHardy <kaber@trash.net>
Fri, 23 Mar 2007 18:27:04 +0000 (11:27 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 26 Apr 2007 05:27:47 +0000 (22:27 -0700)
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 <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found