Lines Matching defs:ctl
626 struct tc_sfq_qopt *ctl = nla_data(opt);
633 if (opt->nla_len < nla_attr_size(sizeof(*ctl)))
637 if (ctl->divisor &&
638 (!is_power_of_2(ctl->divisor) || ctl->divisor > 65536))
642 if (ctl->quantum) {
643 unsigned int scaled = SFQ_ALLOT_SIZE(ctl->quantum);
658 if (ctl->quantum) {
659 q->quantum = ctl->quantum;
662 q->perturb_period = ctl->perturb_period * HZ;
663 if (ctl->flows)
664 q->maxflows = min_t(u32, ctl->flows, SFQ_MAX_FLOWS);
665 if (ctl->divisor) {
666 q->divisor = ctl->divisor;
684 if (ctl->limit) {
685 q->limit = min_t(u32, ctl->limit, q->maxdepth * q->maxflows);