X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/8f4fd13fbaeaa1456406709a9fcad2cfe726306d..ed808cfc4ed8320ad6f97c29ead0b19fb95ae3a0:/target/linux/generic-2.6/patches-2.6.30/260-extend_pfifo_fast.patch diff --git a/target/linux/generic-2.6/patches-2.6.30/260-extend_pfifo_fast.patch b/target/linux/generic-2.6/patches-2.6.30/260-extend_pfifo_fast.patch index 70718e752..ad9e9badd 100644 --- a/target/linux/generic-2.6/patches-2.6.30/260-extend_pfifo_fast.patch +++ b/target/linux/generic-2.6/patches-2.6.30/260-extend_pfifo_fast.patch @@ -123,11 +123,12 @@ .enqueue = pfifo_fast_enqueue, .dequeue = pfifo_fast_dequeue, .peek = pfifo_fast_peek, -@@ -735,3 +799,16 @@ void dev_shutdown(struct net_device *dev +@@ -735,3 +799,18 @@ void dev_shutdown(struct net_device *dev shutdown_scheduler_queue(dev, &dev->rx_queue, &noop_qdisc); WARN_ON(timer_pending(&dev->watchdog_timer)); } + ++#ifdef CONFIG_NET_SCHED +static int __init sch_generic_init(void) +{ + return register_qdisc(&pfifo_fast_ops); @@ -140,3 +141,4 @@ + +module_init(sch_generic_init) +module_exit(sch_generic_exit) ++#endif