Lines Matching refs:opt

1343 static int cbq_init(struct Qdisc *sch, struct nlattr *opt)  in cbq_init()  argument
1350 err = nla_parse_nested(tb, TCA_CBQ_MAX, opt, cbq_policy); in cbq_init()
1423 struct tc_cbq_lssopt opt; in cbq_dump_lss() local
1425 opt.flags = 0; in cbq_dump_lss()
1427 opt.flags |= TCF_CBQ_LSS_BOUNDED; in cbq_dump_lss()
1429 opt.flags |= TCF_CBQ_LSS_ISOLATED; in cbq_dump_lss()
1430 opt.ewma_log = cl->ewma_log; in cbq_dump_lss()
1431 opt.level = cl->level; in cbq_dump_lss()
1432 opt.avpkt = cl->avpkt; in cbq_dump_lss()
1433 opt.maxidle = cl->maxidle; in cbq_dump_lss()
1434 opt.minidle = (u32)(-cl->minidle); in cbq_dump_lss()
1435 opt.offtime = cl->offtime; in cbq_dump_lss()
1436 opt.change = ~0; in cbq_dump_lss()
1437 if (nla_put(skb, TCA_CBQ_LSSOPT, sizeof(opt), &opt)) in cbq_dump_lss()
1449 struct tc_cbq_wrropt opt; in cbq_dump_wrr() local
1451 memset(&opt, 0, sizeof(opt)); in cbq_dump_wrr()
1452 opt.flags = 0; in cbq_dump_wrr()
1453 opt.allot = cl->allot; in cbq_dump_wrr()
1454 opt.priority = cl->priority + 1; in cbq_dump_wrr()
1455 opt.cpriority = cl->cpriority + 1; in cbq_dump_wrr()
1456 opt.weight = cl->weight; in cbq_dump_wrr()
1457 if (nla_put(skb, TCA_CBQ_WRROPT, sizeof(opt), &opt)) in cbq_dump_wrr()
1469 struct tc_cbq_ovl opt; in cbq_dump_ovl() local
1471 opt.strategy = cl->ovl_strategy; in cbq_dump_ovl()
1472 opt.priority2 = cl->priority2 + 1; in cbq_dump_ovl()
1473 opt.pad = 0; in cbq_dump_ovl()
1474 opt.penalty = cl->penalty; in cbq_dump_ovl()
1475 if (nla_put(skb, TCA_CBQ_OVL_STRATEGY, sizeof(opt), &opt)) in cbq_dump_ovl()
1487 struct tc_cbq_fopt opt; in cbq_dump_fopt() local
1490 opt.split = cl->split ? cl->split->common.classid : 0; in cbq_dump_fopt()
1491 opt.defmap = cl->defmap; in cbq_dump_fopt()
1492 opt.defchange = ~0; in cbq_dump_fopt()
1493 if (nla_put(skb, TCA_CBQ_FOPT, sizeof(opt), &opt)) in cbq_dump_fopt()
1507 struct tc_cbq_police opt; in cbq_dump_police() local
1510 opt.police = cl->police; in cbq_dump_police()
1511 opt.__res1 = 0; in cbq_dump_police()
1512 opt.__res2 = 0; in cbq_dump_police()
1513 if (nla_put(skb, TCA_CBQ_POLICE, sizeof(opt), &opt)) in cbq_dump_police()
1731 struct nlattr *opt = tca[TCA_OPTIONS]; in cbq_change_class() local
1736 if (opt == NULL) in cbq_change_class()
1739 err = nla_parse_nested(tb, TCA_CBQ_MAX, opt, cbq_policy); in cbq_change_class()