Lines Matching defs:opt
7 * Init -- EINVAL when opt undefined
143 struct tc_prio_qopt_offload opt = {
152 opt.command = TC_PRIO_REPLACE;
153 opt.replace_params.bands = qopt->bands;
154 memcpy(&opt.replace_params.priomap, qopt->priomap,
156 opt.replace_params.qstats = &sch->qstats;
158 opt.command = TC_PRIO_DESTROY;
161 return dev->netdev_ops->ndo_setup_tc(dev, TC_SETUP_QDISC_PRIO, &opt);
176 static int prio_tune(struct Qdisc *sch, struct nlattr *opt,
184 if (nla_len(opt) < sizeof(*qopt))
186 qopt = nla_data(opt);
229 static int prio_init(struct Qdisc *sch, struct nlattr *opt,
235 if (!opt)
242 return prio_tune(sch, opt, extack);
266 struct tc_prio_qopt opt;
269 opt.bands = q->bands;
270 memcpy(&opt.priomap, q->prio2band, TC_PRIO_MAX + 1);
276 if (nla_put(skb, TCA_OPTIONS, sizeof(opt), &opt))