Lines Matching refs:opt

59 	struct tc_gred_qopt_offload *opt;  member
315 struct tc_gred_qopt_offload *opt = table->opt; in gred_offload() local
320 memset(opt, 0, sizeof(*opt)); in gred_offload()
321 opt->command = command; in gred_offload()
322 opt->handle = sch->handle; in gred_offload()
323 opt->parent = sch->parent; in gred_offload()
328 opt->set.grio_on = gred_rio_mode(table); in gred_offload()
329 opt->set.wred_on = gred_wred_mode(table); in gred_offload()
330 opt->set.dp_cnt = table->DPs; in gred_offload()
331 opt->set.dp_def = table->def; in gred_offload()
338 opt->set.tab[i].present = true; in gred_offload()
339 opt->set.tab[i].limit = q->limit; in gred_offload()
340 opt->set.tab[i].prio = q->prio; in gred_offload()
341 opt->set.tab[i].min = q->parms.qth_min >> q->parms.Wlog; in gred_offload()
342 opt->set.tab[i].max = q->parms.qth_max >> q->parms.Wlog; in gred_offload()
343 opt->set.tab[i].is_ecn = gred_use_ecn(q); in gred_offload()
344 opt->set.tab[i].is_harddrop = gred_use_harddrop(q); in gred_offload()
345 opt->set.tab[i].probability = q->parms.max_P; in gred_offload()
346 opt->set.tab[i].backlog = &q->backlog; in gred_offload()
348 opt->set.qstats = &sch->qstats; in gred_offload()
351 dev->netdev_ops->ndo_setup_tc(dev, TC_SETUP_QDISC_GRED, opt); in gred_offload()
642 static int gred_change(struct Qdisc *sch, struct nlattr *opt, in gred_change() argument
653 err = nla_parse_nested_deprecated(tb, TCA_GRED_MAX, opt, gred_policy, in gred_change()
732 static int gred_init(struct Qdisc *sch, struct nlattr *opt, in gred_init() argument
739 if (!opt) in gred_init()
742 err = nla_parse_nested_deprecated(tb, TCA_GRED_MAX, opt, gred_policy, in gred_init()
760 table->opt = kzalloc(sizeof(*table->opt), GFP_KERNEL); in gred_init()
761 if (!table->opt) in gred_init()
808 struct tc_gred_qopt opt; in gred_dump() local
811 memset(&opt, 0, sizeof(opt)); in gred_dump()
818 opt.DP = MAX_DPs + i; in gred_dump()
822 opt.limit = q->limit; in gred_dump()
823 opt.DP = q->DP; in gred_dump()
824 opt.backlog = gred_backlog(table, q, sch); in gred_dump()
825 opt.prio = q->prio; in gred_dump()
826 opt.qth_min = q->parms.qth_min >> q->parms.Wlog; in gred_dump()
827 opt.qth_max = q->parms.qth_max >> q->parms.Wlog; in gred_dump()
828 opt.Wlog = q->parms.Wlog; in gred_dump()
829 opt.Plog = q->parms.Plog; in gred_dump()
830 opt.Scell_log = q->parms.Scell_log; in gred_dump()
831 opt.early = q->stats.prob_drop; in gred_dump()
832 opt.forced = q->stats.forced_drop; in gred_dump()
833 opt.pdrop = q->stats.pdrop; in gred_dump()
834 opt.packets = q->packetsin; in gred_dump()
835 opt.bytesin = q->bytesin; in gred_dump()
842 opt.qave = qavg >> q->parms.Wlog; in gred_dump()
845 if (nla_append(skb, sizeof(opt), &opt) < 0) in gred_dump()
917 kfree(table->opt); in gred_destroy()