Lines Matching refs:ctl
621 struct tc_sfq_qopt *ctl = nla_data(opt); in sfq_change() local
626 if (opt->nla_len < nla_attr_size(sizeof(*ctl))) in sfq_change()
630 if (ctl->divisor && in sfq_change()
631 (!is_power_of_2(ctl->divisor) || ctl->divisor > 65536)) in sfq_change()
639 if (ctl->quantum) { in sfq_change()
640 q->quantum = ctl->quantum; in sfq_change()
643 q->perturb_period = ctl->perturb_period * HZ; in sfq_change()
644 if (ctl->flows) in sfq_change()
645 q->maxflows = min_t(u32, ctl->flows, SFQ_MAX_FLOWS); in sfq_change()
646 if (ctl->divisor) { in sfq_change()
647 q->divisor = ctl->divisor; in sfq_change()
665 if (ctl->limit) { in sfq_change()
666 q->limit = min_t(u32, ctl->limit, q->maxdepth * q->maxflows); in sfq_change()