Lines Matching defs:opt
277 const struct tc_cbs_qopt *opt,
292 cbs.hicredit = opt->hicredit;
293 cbs.locredit = opt->locredit;
294 cbs.idleslope = opt->idleslope;
295 cbs.sendslope = opt->sendslope;
361 static int cbs_change(struct Qdisc *sch, struct nlattr *opt,
370 err = nla_parse_nested_deprecated(tb, TCA_CBS_MAX, opt, cbs_policy,
401 static int cbs_init(struct Qdisc *sch, struct nlattr *opt,
407 if (!opt) {
430 return cbs_change(sch, opt, extack);
455 struct tc_cbs_qopt opt = { };
462 opt.hicredit = q->hicredit;
463 opt.locredit = q->locredit;
464 opt.sendslope = div64_s64(q->sendslope, BYTES_PER_KBIT);
465 opt.idleslope = div64_s64(q->idleslope, BYTES_PER_KBIT);
466 opt.offload = q->offload;
468 if (nla_put(skb, TCA_CBS_PARMS, sizeof(opt), &opt))