1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-30 02:37:31 +02:00
openwrt-xburst/openwrt/package/linux/kernel-patches/202-net_sched_sch_generic_c-wlfix
wbx 94756d4adc uncompress patches, requested by Kaloz
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@460 3c298f89-4303-0410-b956-a3cf2f4a3e73
2005-03-26 10:33:32 +00:00

61 lines
1.5 KiB
Plaintext

--- linux-mips-cvs-21012005/net/sched/sch_generic.c 2005-01-26 16:31:42.000000000 +0100
+++ linux-broadcom/net/sched/sch_generic.c 2005-01-27 05:13:47.000000000 +0100
@@ -392,7 +392,11 @@
return NULL;
memset(sch, 0, size);
+#ifdef CONFIG_BCM4710
+ sch->next = NULL;
+#else
INIT_LIST_HEAD(&sch->list);
+#endif
skb_queue_head_init(&sch->q);
sch->ops = ops;
sch->enqueue = ops->enqueue;
@@ -426,7 +430,9 @@
if (qdisc->flags&TCQ_F_BUILTIN ||
!atomic_dec_and_test(&qdisc->refcnt))
return;
+#ifndef CONFIG_BCM4710
list_del(&qdisc->list);
+#endif
#ifdef CONFIG_NET_ESTIMATOR
qdisc_kill_estimator(&qdisc->stats);
#endif
@@ -454,9 +460,11 @@
printk(KERN_INFO "%s: activation failed\n", dev->name);
return;
}
+#ifndef CONFIG_BCM4710
write_lock(&qdisc_tree_lock);
list_add_tail(&qdisc->list, &dev->qdisc_list);
write_unlock(&qdisc_tree_lock);
+#endif
} else {
qdisc = &noqueue_qdisc;
@@ -501,7 +509,11 @@
dev->qdisc = &noop_qdisc;
spin_unlock_bh(&dev->queue_lock);
dev->qdisc_sleeping = &noop_qdisc;
+#ifdef CONFIG_BCM4710
+ dev->qdisc_list = NULL;
+#else
INIT_LIST_HEAD(&dev->qdisc_list);
+#endif
write_unlock(&qdisc_tree_lock);
dev_watchdog_init(dev);
@@ -523,7 +535,11 @@
qdisc_destroy(qdisc);
}
#endif
+#ifdef CONFIG_BCM4710
+ BUG_TRAP(dev->qdisc_list == NULL);
+#else
BUG_TRAP(list_empty(&dev->qdisc_list));
+#endif
BUG_TRAP(!timer_pending(&dev->watchdog_timer));
spin_unlock_bh(&dev->queue_lock);
write_unlock(&qdisc_tree_lock);