Lines Matching defs:opt
134 struct nlattr *opt,
142 err = parse_attr(tb, TCA_MQPRIO_MAX, opt, mqprio_policy,
224 static int mqprio_init(struct Qdisc *sch, struct nlattr *opt,
248 if (!opt || nla_len(opt) < sizeof(*qopt))
251 qopt = nla_data(opt);
255 len = nla_len(opt) - NLA_ALIGN(sizeof(*qopt));
257 err = mqprio_parse_nlattr(sch, qopt, opt, extack);
408 struct tc_mqprio_qopt *opt, struct sk_buff *skb)
418 for (i = 0; i < opt->num_tc; i++) {
432 for (i = 0; i < opt->num_tc; i++) {
452 struct tc_mqprio_qopt opt = { 0 };
492 opt.num_tc = netdev_get_num_tc(dev);
493 memcpy(opt.prio_tc_map, dev->prio_tc_map, sizeof(opt.prio_tc_map));
494 opt.hw = priv->hw_offload;
497 opt.count[tc] = dev->tc_to_txq[tc].count;
498 opt.offset[tc] = dev->tc_to_txq[tc].offset;
501 if (nla_put(skb, TCA_OPTIONS, sizeof(opt), &opt))
514 (dump_rates(priv, &opt, skb) != 0))