Lines Matching refs:qopt

145 	struct tc_tbf_qopt_offload qopt;  in tbf_offload_change()  local
150 qopt.command = TC_TBF_REPLACE; in tbf_offload_change()
151 qopt.handle = sch->handle; in tbf_offload_change()
152 qopt.parent = sch->parent; in tbf_offload_change()
153 qopt.replace_params.rate = q->rate; in tbf_offload_change()
154 qopt.replace_params.max_size = q->max_size; in tbf_offload_change()
155 qopt.replace_params.qstats = &sch->qstats; in tbf_offload_change()
157 dev->netdev_ops->ndo_setup_tc(dev, TC_SETUP_QDISC_TBF, &qopt); in tbf_offload_change()
163 struct tc_tbf_qopt_offload qopt; in tbf_offload_destroy() local
168 qopt.command = TC_TBF_DESTROY; in tbf_offload_destroy()
169 qopt.handle = sch->handle; in tbf_offload_destroy()
170 qopt.parent = sch->parent; in tbf_offload_destroy()
171 dev->netdev_ops->ndo_setup_tc(dev, TC_SETUP_QDISC_TBF, &qopt); in tbf_offload_destroy()
176 struct tc_tbf_qopt_offload qopt; in tbf_offload_dump() local
178 qopt.command = TC_TBF_STATS; in tbf_offload_dump()
179 qopt.handle = sch->handle; in tbf_offload_dump()
180 qopt.parent = sch->parent; in tbf_offload_dump()
181 qopt.stats.bstats = &sch->bstats; in tbf_offload_dump()
182 qopt.stats.qstats = &sch->qstats; in tbf_offload_dump()
184 return qdisc_offload_dump_helper(sch, TC_SETUP_QDISC_TBF, &qopt); in tbf_offload_dump()
357 struct tc_tbf_qopt *qopt; in tbf_change() local
374 qopt = nla_data(tb[TCA_TBF_PARMS]); in tbf_change()
375 if (qopt->rate.linklayer == TC_LINKLAYER_UNAWARE) in tbf_change()
376 qdisc_put_rtab(qdisc_get_rtab(&qopt->rate, in tbf_change()
380 if (qopt->peakrate.linklayer == TC_LINKLAYER_UNAWARE) in tbf_change()
381 qdisc_put_rtab(qdisc_get_rtab(&qopt->peakrate, in tbf_change()
385 buffer = min_t(u64, PSCHED_TICKS2NS(qopt->buffer), ~0U); in tbf_change()
386 mtu = min_t(u64, PSCHED_TICKS2NS(qopt->mtu), ~0U); in tbf_change()
390 psched_ratecfg_precompute(&rate, &qopt->rate, rate64); in tbf_change()
399 if (qopt->peakrate.rate) { in tbf_change()
402 psched_ratecfg_precompute(&peak, &qopt->peakrate, prate64); in tbf_change()
432 err = fifo_set_limit(q->qdisc, qopt->limit); in tbf_change()
435 } else if (qopt->limit > 0) { in tbf_change()
436 child = fifo_create_dflt(sch, &bfifo_qdisc_ops, qopt->limit, in tbf_change()
453 q->limit = qopt->limit; in tbf_change()
457 q->mtu = PSCHED_TICKS2NS(qopt->mtu); in tbf_change()
462 q->buffer = PSCHED_TICKS2NS(qopt->buffer); in tbf_change()