1 --- linux-2.4.30/net/sched/sch_generic.c 2004-11-17 12:54:22.000000000 +0100
2 +++ linux-2.4.30-wl/net/sched/sch_generic.c 2005-04-24 18:09:38.000000000 +0200
7 - INIT_LIST_HEAD(&sch->list);
8 skb_queue_head_init(&sch->q);
10 sch->enqueue = ops->enqueue;
12 void qdisc_destroy(struct Qdisc *qdisc)
14 struct Qdisc_ops *ops = qdisc->ops;
15 + struct net_device *dev;
17 if (qdisc->flags&TCQ_F_BUILTIN ||
18 !atomic_dec_and_test(&qdisc->refcnt))
20 - list_del(&qdisc->list);
24 + struct Qdisc *q, **qp;
25 + for (qp = &qdisc->dev->qdisc_list; (q=*qp) != NULL; qp = &q->next) {
32 #ifdef CONFIG_NET_ESTIMATOR
33 qdisc_kill_estimator(&qdisc->stats);
38 write_lock(&qdisc_tree_lock);
39 - list_add_tail(&qdisc->list, &dev->qdisc_list);
40 + qdisc->next = dev->qdisc_list;
41 + dev->qdisc_list = qdisc;
42 write_unlock(&qdisc_tree_lock);
45 qdisc = &noqueue_qdisc;
48 dev->qdisc = &noop_qdisc;
49 spin_unlock_bh(&dev->queue_lock);
50 dev->qdisc_sleeping = &noop_qdisc;
51 - INIT_LIST_HEAD(&dev->qdisc_list);
52 + dev->qdisc_list = NULL;
53 write_unlock(&qdisc_tree_lock);
55 dev_watchdog_init(dev);
60 - BUG_TRAP(list_empty(&dev->qdisc_list));
61 + BUG_TRAP(dev->qdisc_list == NULL);
62 BUG_TRAP(!timer_pending(&dev->watchdog_timer));
63 spin_unlock_bh(&dev->queue_lock);
64 write_unlock(&qdisc_tree_lock);