diff options
author | Patrick McHardy <kaber@trash.net> | 2007-03-23 11:27:04 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-25 22:27:47 -0700 |
commit | 76d643cd3bd2b4a1e27e3eafee8e37be9c681792 (patch) | |
tree | de8ede0c0700755caf16ca9d3dc4dba06075984d /include/net/pkt_sched.h | |
parent | c7bf5f9dc2f78ae8ebbfffc5f17becd0d9e6ba9e (diff) | |
download | op-kernel-dev-76d643cd3bd2b4a1e27e3eafee8e37be9c681792.zip op-kernel-dev-76d643cd3bd2b4a1e27e3eafee8e37be9c681792.tar.gz |
[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 <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/pkt_sched.h')
0 files changed, 0 insertions, 0 deletions