diff options
author | Jarek Poplawski <jarkao2@gmail.com> | 2008-11-02 02:36:03 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-02 02:36:03 -0500 |
commit | 8ba25dad0ac78850cd46d91186a27d60f7314752 (patch) | |
tree | fbc784a4666ba4e740230fab804dc15bf30f2645 | |
parent | 02201464119334690fe209849843881b8e9cfa9f (diff) |
sch_netem: Replace ->requeue() method with open code
After removing netem classful functionality we are sure its inner
qdisc is tfifo, so we can replace qdisc->ops->requeue() method with
open code. After this patch there are no more ops->requeue() users.
The idea of this patch is by Patrick McHardy.
Signed-off-by: Jarek Poplawski <jarkao2@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/sched/sch_netem.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/net/sched/sch_netem.c b/net/sched/sch_netem.c index 2ad09594c8bc..1aa43453705c 100644 --- a/net/sched/sch_netem.c +++ b/net/sched/sch_netem.c | |||
@@ -233,7 +233,11 @@ static int netem_enqueue(struct sk_buff *skb, struct Qdisc *sch) | |||
233 | */ | 233 | */ |
234 | cb->time_to_send = psched_get_time(); | 234 | cb->time_to_send = psched_get_time(); |
235 | q->counter = 0; | 235 | q->counter = 0; |
236 | ret = q->qdisc->ops->requeue(skb, q->qdisc); | 236 | |
237 | __skb_queue_head(&q->qdisc->q, skb); | ||
238 | q->qdisc->qstats.backlog += qdisc_pkt_len(skb); | ||
239 | q->qdisc->qstats.requeues++; | ||
240 | ret = NET_XMIT_SUCCESS; | ||
237 | } | 241 | } |
238 | 242 | ||
239 | if (likely(ret == NET_XMIT_SUCCESS)) { | 243 | if (likely(ret == NET_XMIT_SUCCESS)) { |