Lines Matching defs:opt
1049 static int htb_offload(struct net_device *dev, struct tc_htb_qopt_offload *opt)
1051 return dev->netdev_ops->ndo_setup_tc(dev, TC_SETUP_QDISC_HTB, opt);
1054 static int htb_init(struct Qdisc *sch, struct nlattr *opt,
1069 if (!opt)
1076 err = nla_parse_nested_deprecated(tb, TCA_HTB_MAX, opt, htb_policy,
1254 struct tc_htb_opt opt;
1268 memset(&opt, 0, sizeof(opt));
1270 psched_ratecfg_getrate(&opt.rate, &cl->rate);
1271 opt.buffer = PSCHED_NS2TICKS(cl->buffer);
1272 psched_ratecfg_getrate(&opt.ceil, &cl->ceil);
1273 opt.cbuffer = PSCHED_NS2TICKS(cl->cbuffer);
1274 opt.quantum = cl->quantum;
1275 opt.prio = cl->prio;
1276 opt.level = cl->level;
1277 if (nla_put(skb, TCA_HTB_PARMS, sizeof(opt), &opt))
1777 struct nlattr *opt = tca[TCA_OPTIONS];
1785 /* extract all subattrs from opt attr */
1786 if (!opt)
1789 err = nla_parse_nested_deprecated(tb, TCA_HTB_MAX, opt, htb_policy,
1834 struct gnet_estimator opt;
1837 .nla_len = nla_attr_size(sizeof(est.opt)),
1840 .opt = {