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>

SVN-Revision: 13366
master
Florian Fainelli 16 years ago
parent cd96a09834
commit f39b57d15b
  1. 4
      target/linux/generic-2.6/patches-2.6.27/200-sched_esfq.patch

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

Loading…
Cancel
Save