1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-24 21:29:55 +02:00

the 'dev' member of the structure was removed in 2.6.27 (see:

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=5ce2d488fe039ddd86a638496cf704df86c74eeb),
therefore use the qdisc_dev() function instead.

Signed-off-by: Russell Senior <seniorr@aracnet.com>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13366 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian 2008-11-26 18:16:23 +00:00
parent 91d414b022
commit b10c76f45f

View File

@ -678,7 +678,7 @@
+ struct esfq_sched_data *q = qdisc_priv(sch);
+ int err;
+
+ q->quantum = psched_mtu(sch->dev); /* default */
+ q->quantum = psched_mtu(qdisc_dev(sch)); /* default */
+ if ((err = esfq_q_init(q, opt)))
+ return err;
+
@ -702,7 +702,7 @@
+
+ /* set up new queue */
+ memset(&new, 0, sizeof(struct esfq_sched_data));
+ new.quantum = psched_mtu(sch->dev); /* default */
+ new.quantum = psched_mtu(qdisc_dev(sch)); /* default */
+ if ((err = esfq_q_init(&new, opt)))
+ return err;
+