Lines Matching defs:opt
276 const struct tc_cbs_qopt *opt,
291 cbs.hicredit = opt->hicredit;
292 cbs.locredit = opt->locredit;
293 cbs.idleslope = opt->idleslope;
294 cbs.sendslope = opt->sendslope;
360 static int cbs_change(struct Qdisc *sch, struct nlattr *opt,
369 err = nla_parse_nested_deprecated(tb, TCA_CBS_MAX, opt, cbs_policy,
400 static int cbs_init(struct Qdisc *sch, struct nlattr *opt,
406 if (!opt) {
429 return cbs_change(sch, opt, extack);
454 struct tc_cbs_qopt opt = { };
461 opt.hicredit = q->hicredit;
462 opt.locredit = q->locredit;
463 opt.sendslope = div64_s64(q->sendslope, BYTES_PER_KBIT);
464 opt.idleslope = div64_s64(q->idleslope, BYTES_PER_KBIT);
465 opt.offload = q->offload;
467 if (nla_put(skb, TCA_CBS_PARMS, sizeof(opt), &opt))