Lines Matching defs:opt
996 static int htb_init(struct Qdisc *sch, struct nlattr *opt,
1007 if (!opt)
1014 err = nla_parse_nested_deprecated(tb, TCA_HTB_MAX, opt, htb_policy,
1080 struct tc_htb_opt opt;
1094 memset(&opt, 0, sizeof(opt));
1096 psched_ratecfg_getrate(&opt.rate, &cl->rate);
1097 opt.buffer = PSCHED_NS2TICKS(cl->buffer);
1098 psched_ratecfg_getrate(&opt.ceil, &cl->ceil);
1099 opt.cbuffer = PSCHED_NS2TICKS(cl->cbuffer);
1100 opt.quantum = cl->quantum;
1101 opt.prio = cl->prio;
1102 opt.level = cl->level;
1103 if (nla_put(skb, TCA_HTB_PARMS, sizeof(opt), &opt))
1304 struct nlattr *opt = tca[TCA_OPTIONS];
1311 /* extract all subattrs from opt attr */
1312 if (!opt)
1315 err = nla_parse_nested_deprecated(tb, TCA_HTB_MAX, opt, htb_policy,
1344 struct gnet_estimator opt;
1347 .nla_len = nla_attr_size(sizeof(est.opt)),
1350 .opt = {