Lines Matching full:rate

75 		tbf->qt_mpu = opts.rate.mpu;  in tbf_msg_parser()
77 rtnl_copy_ratespec(&tbf->qt_rate, &opts.rate); in tbf_msg_parser()
80 opts.rate.rate); in tbf_msg_parser()
86 opts.peakrate.rate); in tbf_msg_parser()
114 nl_dump(p, " rate %.2f%s/s (%.0f%s) limit %.2f%s", in tbf_dump_line()
131 nl_dump(p, "mpu %u rate-bucket-size %1.f%s " in tbf_dump_details()
132 "rate-cell-size %.1f%s\n", in tbf_dump_details()
147 nl_dump_line(p, " peak-rate %.2f%s/s (%.0f%s) " in tbf_dump_details()
175 rtnl_rcopy_ratespec(&opts.rate, &tbf->qt_rate); in tbf_get_opts()
251 * configured rate and peak rate. In order for this operation to succeed,
252 * the rate and if required the peak rate must have been set in advance.
258 * limit = min(limit_{rate},limit_{peak})
358 * Set rate of TBF qdisc.
360 * @arg rate New rate in bytes per second.
362 * @arg cell Size of a rate cell or 0 to get default value.
365 int rtnl_qdisc_tbf_set_rate(struct rtnl_qdisc *qdisc, int rate, int bucket, in rtnl_qdisc_tbf_set_rate() argument
379 tbf->qt_rate.rs_rate = rate; in rtnl_qdisc_tbf_set_rate()
382 tbf->qt_rate_txtime = rtnl_tc_calc_txtime(bucket, rate); in rtnl_qdisc_tbf_set_rate()
389 * Get rate of TBF qdisc.
391 * @return Rate in bytes per seconds or a negative error code.
405 * Get rate bucket size of TBF qdisc.
407 * @return Size of rate bucket or a negative error code.
421 * Get rate cell size of TBF qdisc.
423 * @return Size of rate cell in bytes or a negative error code.
437 * Set peak rate of TBF qdisc.
439 * @arg rate New peak rate in bytes per second.
444 int rtnl_qdisc_tbf_set_peakrate(struct rtnl_qdisc *qdisc, int rate, int bucket, in rtnl_qdisc_tbf_set_peakrate() argument
458 tbf->qt_peakrate.rs_rate = rate; in rtnl_qdisc_tbf_set_peakrate()
461 tbf->qt_peakrate_txtime = rtnl_tc_calc_txtime(bucket, rate); in rtnl_qdisc_tbf_set_peakrate()
469 * Get peak rate of TBF qdisc.
471 * @return Peak rate in bytes per seconds or a negative error code.
485 * Get peak rate bucket size of TBF qdisc.
487 * @return Size of peak rate bucket or a negative error code.
501 * Get peak rate cell size of TBF qdisc.
503 * @return Size of peak rate cell in bytes or a negative error code.