Skip to content

Commit

Permalink
pkt_sched: Make netem queue agnostic.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David S. Miller committed Jul 9, 2008
1 parent 68dfb42 commit 74d58a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/sched/sch_netem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 74d58a0

Please sign in to comment.