diff options
author | Eric Dumazet <edumazet@google.com> | 2015-05-11 19:06:56 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-05-11 21:17:32 +0300 |
commit | b396cca6fafccf16206a5d041d59c9e6b65b6f5a (patch) | |
tree | fe3b01a37526d5398cae514cac51c88fc8997879 /net/sched | |
parent | 3824246d373249e3fc2fd775f5cb4700552681da (diff) | |
download | linux-b396cca6fafccf16206a5d041d59c9e6b65b6f5a.tar.xz |
net: sched: deprecate enqueue_root()
Only left enqueue_root() user is netem, and it looks not necessary :
qdisc_skb_cb(skb)->pkt_len is preserved after one skb_clone()
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched')
-rw-r--r-- | net/sched/sch_netem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sched/sch_netem.c b/net/sched/sch_netem.c index 956ead2cab9a..5abd1d9de989 100644 --- a/net/sched/sch_netem.c +++ b/net/sched/sch_netem.c @@ -440,9 +440,9 @@ static int netem_enqueue(struct sk_buff *skb, struct Qdisc *sch) if (count > 1 && (skb2 = skb_clone(skb, GFP_ATOMIC)) != NULL) { struct Qdisc *rootq = qdisc_root(sch); u32 dupsave = q->duplicate; /* prevent duplicating a dup... */ - q->duplicate = 0; - qdisc_enqueue_root(skb2, rootq); + q->duplicate = 0; + rootq->enqueue(skb2, rootq); q->duplicate = dupsave; } |