Lines Matching refs:ctl
642 struct tc_sfq_qopt *ctl = nla_data(opt); in sfq_change() local
647 if (opt->nla_len < nla_attr_size(sizeof(*ctl))) in sfq_change()
651 if (ctl->divisor && in sfq_change()
652 (!is_power_of_2(ctl->divisor) || ctl->divisor > 65536)) in sfq_change()
660 if (ctl->quantum) { in sfq_change()
661 q->quantum = ctl->quantum; in sfq_change()
664 q->perturb_period = ctl->perturb_period * HZ; in sfq_change()
665 if (ctl->flows) in sfq_change()
666 q->maxflows = min_t(u32, ctl->flows, SFQ_MAX_FLOWS); in sfq_change()
667 if (ctl->divisor) { in sfq_change()
668 q->divisor = ctl->divisor; in sfq_change()
686 if (ctl->limit) { in sfq_change()
687 q->limit = min_t(u32, ctl->limit, q->maxdepth * q->maxflows); in sfq_change()