Lines Matching defs:opt
335 static int tbf_change(struct Qdisc *sch, struct nlattr *opt,
350 err = nla_parse_nested_deprecated(tb, TCA_TBF_MAX, opt, tbf_policy,
463 static int tbf_init(struct Qdisc *sch, struct nlattr *opt,
471 if (!opt)
476 return tbf_change(sch, opt, extack);
492 struct tc_tbf_qopt opt;
503 opt.limit = q->limit;
504 psched_ratecfg_getrate(&opt.rate, &q->rate);
506 psched_ratecfg_getrate(&opt.peakrate, &q->peak);
508 memset(&opt.peakrate, 0, sizeof(opt.peakrate));
509 opt.mtu = PSCHED_NS2TICKS(q->mtu);
510 opt.buffer = PSCHED_NS2TICKS(q->buffer);
511 if (nla_put(skb, TCA_TBF_PARMS, sizeof(opt), &opt))