~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to net/sched/sch_multiq.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
156
156
        unsigned int len;
157
157
        struct Qdisc *qdisc;
158
158
 
159
 
        for (band = q->bands-1; band >= 0; band--) {
 
159
        for (band = q->bands - 1; band >= 0; band--) {
160
160
                qdisc = q->queues[band];
161
161
                if (qdisc->ops->drop) {
162
162
                        len = qdisc->ops->drop(qdisc);
265
265
        for (i = 0; i < q->max_bands; i++)
266
266
                q->queues[i] = &noop_qdisc;
267
267
 
268
 
        err = multiq_tune(sch,opt);
 
268
        err = multiq_tune(sch, opt);
269
269
 
270
270
        if (err)
271
271
                kfree(q->queues);
346
346
        struct multiq_sched_data *q = qdisc_priv(sch);
347
347
 
348
348
        tcm->tcm_handle |= TC_H_MIN(cl);
349
 
        tcm->tcm_info = q->queues[cl-1]->handle;
 
349
        tcm->tcm_info = q->queues[cl - 1]->handle;
350
350
        return 0;
351
351
}
352
352
 
378
378
                        arg->count++;
379
379
                        continue;
380
380
                }
381
 
                if (arg->fn(sch, band+1, arg) < 0) {
 
381
                if (arg->fn(sch, band + 1, arg) < 0) {
382
382
                        arg->stop = 1;
383
383
                        break;
384
384
                }