Lines Matching refs:opt
623 static int sfq_change(struct Qdisc *sch, struct nlattr *opt) in sfq_change() argument
626 struct tc_sfq_qopt *ctl = nla_data(opt); in sfq_change()
633 if (opt->nla_len < nla_attr_size(sizeof(*ctl))) in sfq_change()
635 if (opt->nla_len >= nla_attr_size(sizeof(*ctl_v1))) in sfq_change()
636 ctl_v1 = nla_data(opt); in sfq_change()
722 static int sfq_init(struct Qdisc *sch, struct nlattr *opt, in sfq_init() argument
752 if (opt) { in sfq_init()
753 int err = sfq_change(sch, opt); in sfq_init()
783 struct tc_sfq_qopt_v1 opt; in sfq_dump() local
786 memset(&opt, 0, sizeof(opt)); in sfq_dump()
787 opt.v0.quantum = q->quantum; in sfq_dump()
788 opt.v0.perturb_period = q->perturb_period / HZ; in sfq_dump()
789 opt.v0.limit = q->limit; in sfq_dump()
790 opt.v0.divisor = q->divisor; in sfq_dump()
791 opt.v0.flows = q->maxflows; in sfq_dump()
792 opt.depth = q->maxdepth; in sfq_dump()
793 opt.headdrop = q->headdrop; in sfq_dump()
796 opt.qth_min = p->qth_min >> p->Wlog; in sfq_dump()
797 opt.qth_max = p->qth_max >> p->Wlog; in sfq_dump()
798 opt.Wlog = p->Wlog; in sfq_dump()
799 opt.Plog = p->Plog; in sfq_dump()
800 opt.Scell_log = p->Scell_log; in sfq_dump()
801 opt.max_P = p->max_P; in sfq_dump()
803 memcpy(&opt.stats, &q->stats, sizeof(opt.stats)); in sfq_dump()
804 opt.flags = q->flags; in sfq_dump()
806 if (nla_put(skb, TCA_OPTIONS, sizeof(opt), &opt)) in sfq_dump()