mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 22:51:42 +00:00
pkt_sched: Make netem queue agnostic.
It just wants the root qdisc given an arbitrary qdisc, and that is simply qdisc->dev_queue->qdisc Signed-off-by: David S. Miller <davem@davemloft.net> Acked-by: Stephen Hemminger <shemminger@vyatta.com>
This commit is contained in:
parent
68dfb42798
commit
74d58a0c1d
@ -180,7 +180,7 @@ static int netem_enqueue(struct sk_buff *skb, struct Qdisc *sch)
|
||||
* skb will be queued.
|
||||
*/
|
||||
if (count > 1 && (skb2 = skb_clone(skb, GFP_ATOMIC)) != NULL) {
|
||||
struct Qdisc *rootq = qdisc_dev(sch)->tx_queue.qdisc;
|
||||
struct Qdisc *rootq = sch->dev_queue->qdisc;
|
||||
u32 dupsave = q->duplicate; /* prevent duplicating a dup... */
|
||||
q->duplicate = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user