Home
last modified time | relevance | path

Searched refs:qopt (Results 1 – 6 of 6) sorted by relevance

/linux-4.4.14/net/sched/
Dsch_mqprio.c47 static int mqprio_parse_opt(struct net_device *dev, struct tc_mqprio_qopt *qopt) in mqprio_parse_opt() argument
52 if (qopt->num_tc > TC_MAX_QUEUE) in mqprio_parse_opt()
57 if (qopt->prio_tc_map[i] >= qopt->num_tc) in mqprio_parse_opt()
62 if (qopt->hw && !dev->netdev_ops->ndo_setup_tc) in mqprio_parse_opt()
68 if (qopt->hw) in mqprio_parse_opt()
71 for (i = 0; i < qopt->num_tc; i++) { in mqprio_parse_opt()
72 unsigned int last = qopt->offset[i] + qopt->count[i]; in mqprio_parse_opt()
77 if (qopt->offset[i] >= dev->real_num_tx_queues || in mqprio_parse_opt()
78 !qopt->count[i] || in mqprio_parse_opt()
83 for (j = i + 1; j < qopt->num_tc; j++) { in mqprio_parse_opt()
[all …]
Dsch_tbf.c319 struct tc_tbf_qopt *qopt; in tbf_change() local
335 qopt = nla_data(tb[TCA_TBF_PARMS]); in tbf_change()
336 if (qopt->rate.linklayer == TC_LINKLAYER_UNAWARE) in tbf_change()
337 qdisc_put_rtab(qdisc_get_rtab(&qopt->rate, in tbf_change()
340 if (qopt->peakrate.linklayer == TC_LINKLAYER_UNAWARE) in tbf_change()
341 qdisc_put_rtab(qdisc_get_rtab(&qopt->peakrate, in tbf_change()
344 buffer = min_t(u64, PSCHED_TICKS2NS(qopt->buffer), ~0U); in tbf_change()
345 mtu = min_t(u64, PSCHED_TICKS2NS(qopt->mtu), ~0U); in tbf_change()
349 psched_ratecfg_precompute(&rate, &qopt->rate, rate64); in tbf_change()
358 if (qopt->peakrate.rate) { in tbf_change()
[all …]
Dsch_prio.c171 struct tc_prio_qopt *qopt; in prio_tune() local
174 if (nla_len(opt) < sizeof(*qopt)) in prio_tune()
176 qopt = nla_data(opt); in prio_tune()
178 if (qopt->bands > TCQ_PRIO_BANDS || qopt->bands < 2) in prio_tune()
182 if (qopt->priomap[i] >= qopt->bands) in prio_tune()
187 q->bands = qopt->bands; in prio_tune()
188 memcpy(q->prio2band, qopt->priomap, TC_PRIO_MAX+1); in prio_tune()
Dsch_netem.c863 struct tc_netem_qopt *qopt; in netem_change() local
871 qopt = nla_data(opt); in netem_change()
872 ret = parse_attr(tb, TCA_NETEM_MAX, opt, netem_policy, sizeof(*qopt)); in netem_change()
903 sch->limit = qopt->limit; in netem_change()
905 q->latency = qopt->latency; in netem_change()
906 q->jitter = qopt->jitter; in netem_change()
907 q->limit = qopt->limit; in netem_change()
908 q->gap = qopt->gap; in netem_change()
910 q->loss = qopt->loss; in netem_change()
911 q->duplicate = qopt->duplicate; in netem_change()
[all …]
Dsch_multiq.c203 struct tc_multiq_qopt *qopt; in multiq_tune() local
208 if (nla_len(opt) < sizeof(*qopt)) in multiq_tune()
211 qopt = nla_data(opt); in multiq_tune()
213 qopt->bands = qdisc_dev(sch)->real_num_tx_queues; in multiq_tune()
216 q->bands = qopt->bands; in multiq_tune()
Dsch_hfsc.c1434 struct tc_hfsc_qopt *qopt; in hfsc_init_qdisc() local
1437 if (opt == NULL || nla_len(opt) < sizeof(*qopt)) in hfsc_init_qdisc()
1439 qopt = nla_data(opt); in hfsc_init_qdisc()
1441 q->defcls = qopt->defcls; in hfsc_init_qdisc()
1471 struct tc_hfsc_qopt *qopt; in hfsc_change_qdisc() local
1473 if (opt == NULL || nla_len(opt) < sizeof(*qopt)) in hfsc_change_qdisc()
1475 qopt = nla_data(opt); in hfsc_change_qdisc()
1478 q->defcls = qopt->defcls; in hfsc_change_qdisc()
1561 struct tc_hfsc_qopt qopt; in hfsc_dump_qdisc() local
1571 qopt.defcls = q->defcls; in hfsc_dump_qdisc()
[all …]