Lines Matching defs:ctl
629 struct tc_sfq_qopt *ctl = nla_data(opt);
636 if (opt->nla_len < nla_attr_size(sizeof(*ctl)))
640 if (ctl->divisor &&
641 (!is_power_of_2(ctl->divisor) || ctl->divisor > 65536))
645 if (ctl->quantum) {
646 unsigned int scaled = SFQ_ALLOT_SIZE(ctl->quantum);
661 if (ctl->quantum) {
662 q->quantum = ctl->quantum;
665 q->perturb_period = ctl->perturb_period * HZ;
666 if (ctl->flows)
667 q->maxflows = min_t(u32, ctl->flows, SFQ_MAX_FLOWS);
668 if (ctl->divisor) {
669 q->divisor = ctl->divisor;
687 if (ctl->limit) {
688 q->limit = min_t(u32, ctl->limit, q->maxdepth * q->maxflows);