Skip to contentSkip to conversation

: pkt_sched: Make netem queue agnostic.

PATCH In review David Miller 1 participant 1 message Jul 3, 2008

Subsystems (4)
lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

PATCH 10/39 : pkt_sched: Make netem queue agnostic.

It just wants the root qdisc given an arbitrary qdisc, and that is simply qdisc->dev_queue->qdisc

---
 net/sched/sch_netem.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/sched/sch_netem.c +1 -1
index 4439aea..e882908 100644
@@ -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;
 
Signature · 1 line
1.5.6