Lines Matching defs:opt
350 static int tbf_change(struct Qdisc *sch, struct nlattr *opt,
365 err = nla_parse_nested_deprecated(tb, TCA_TBF_MAX, opt, tbf_policy,
478 static int tbf_init(struct Qdisc *sch, struct nlattr *opt,
486 if (!opt)
491 return tbf_change(sch, opt, extack);
507 struct tc_tbf_qopt opt;
518 opt.limit = q->limit;
519 psched_ratecfg_getrate(&opt.rate, &q->rate);
521 psched_ratecfg_getrate(&opt.peakrate, &q->peak);
523 memset(&opt.peakrate, 0, sizeof(opt.peakrate));
524 opt.mtu = PSCHED_NS2TICKS(q->mtu);
525 opt.buffer = PSCHED_NS2TICKS(q->buffer);
526 if (nla_put(skb, TCA_TBF_PARMS, sizeof(opt), &opt))