Lines Matching refs:ctl
634 struct tc_sfq_qopt *ctl = nla_data(opt);
641 if (opt->nla_len < nla_attr_size(sizeof(*ctl)))
645 if (ctl->divisor &&
646 (!is_power_of_2(ctl->divisor) || ctl->divisor > 65536))
650 if (ctl->quantum) {
651 unsigned int scaled = SFQ_ALLOT_SIZE(ctl->quantum);
666 if (ctl->quantum) {
667 q->quantum = ctl->quantum;
670 WRITE_ONCE(q->perturb_period, ctl->perturb_period * HZ);
671 if (ctl->flows)
672 q->maxflows = min_t(u32, ctl->flows, SFQ_MAX_FLOWS);
673 if (ctl->divisor) {
674 q->divisor = ctl->divisor;
692 if (ctl->limit) {
693 q->limit = min_t(u32, ctl->limit, q->maxdepth * q->maxflows);