aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/sch_netem.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2007-03-23 14:28:07 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 01:27:50 -0400
commit104e0878984bb467e3f54d61105d8903babb4ec1 (patch)
tree796a0b5d189582255c3510817491428671921d5c /net/sched/sch_netem.c
parent7c59e25f3186f26e85b13a318dbc4482d1d363e9 (diff)
[NET_SCHED]: kill PSCHED_TLESS
Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_netem.c')
-rw-r--r--net/sched/sch_netem.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/sched/sch_netem.c b/net/sched/sch_netem.c
index 6044ae77d5da..5d571aa04a76 100644
--- a/net/sched/sch_netem.c
+++ b/net/sched/sch_netem.c
@@ -286,7 +286,7 @@ static struct sk_buff *netem_dequeue(struct Qdisc *sch)
286 /* if more time remaining? */ 286 /* if more time remaining? */
287 PSCHED_GET_TIME(now); 287 PSCHED_GET_TIME(now);
288 288
289 if (!PSCHED_TLESS(now, cb->time_to_send)) { 289 if (cb->time_to_send <= now) {
290 pr_debug("netem_dequeue: return skb=%p\n", skb); 290 pr_debug("netem_dequeue: return skb=%p\n", skb);
291 sch->q.qlen--; 291 sch->q.qlen--;
292 return skb; 292 return skb;
@@ -494,7 +494,7 @@ static int tfifo_enqueue(struct sk_buff *nskb, struct Qdisc *sch)
494 494
495 if (likely(skb_queue_len(list) < q->limit)) { 495 if (likely(skb_queue_len(list) < q->limit)) {
496 /* Optimize for add at tail */ 496 /* Optimize for add at tail */
497 if (likely(skb_queue_empty(list) || !PSCHED_TLESS(tnext, q->oldest))) { 497 if (likely(skb_queue_empty(list) || tnext >= q->oldest)) {
498 q->oldest = tnext; 498 q->oldest = tnext;
499 return qdisc_enqueue_tail(nskb, sch); 499 return qdisc_enqueue_tail(nskb, sch);
500 } 500 }
@@ -503,7 +503,7 @@ static int tfifo_enqueue(struct sk_buff *nskb, struct Qdisc *sch)
503 const struct netem_skb_cb *cb 503 const struct netem_skb_cb *cb
504 = (const struct netem_skb_cb *)skb->cb; 504 = (const struct netem_skb_cb *)skb->cb;
505 505
506 if (!PSCHED_TLESS(tnext, cb->time_to_send)) 506 if (tnext >= cb->time_to_send)
507 break; 507 break;
508 } 508 }
509 509