Lines Matching defs:qopt
140 static int prio_offload(struct Qdisc *sch, struct tc_prio_qopt *qopt)
151 if (qopt) {
153 opt.replace_params.bands = qopt->bands;
154 memcpy(&opt.replace_params.priomap, qopt->priomap,
182 struct tc_prio_qopt *qopt;
184 if (nla_len(opt) < sizeof(*qopt))
186 qopt = nla_data(opt);
188 if (qopt->bands > TCQ_PRIO_BANDS || qopt->bands < TCQ_MIN_PRIO_BANDS)
192 if (qopt->priomap[i] >= qopt->bands)
197 for (i = oldbands; i < qopt->bands; i++) {
208 prio_offload(sch, qopt);
210 q->bands = qopt->bands;
211 memcpy(q->prio2band, qopt->priomap, TC_PRIO_MAX+1);