Lines Matching refs:peakrate
125 if (opt.peakrate.rate) { in tbf_parse_opt()
129 if (get_rate(&opt.peakrate.rate, *argv)) { in tbf_parse_opt()
168 if (opt.peakrate.rate) { in tbf_parse_opt()
182 if (opt.peakrate.rate) { in tbf_parse_opt()
183 double lim2 = opt.peakrate.rate*(double)latency/TIME_UNITS_PER_SEC + mtu; in tbf_parse_opt()
198 if (opt.peakrate.rate) { in tbf_parse_opt()
199 opt.peakrate.mpu = mpu; in tbf_parse_opt()
200 opt.peakrate.overhead = overhead; in tbf_parse_opt()
201 if (tc_calc_rtable(&opt.peakrate, ptab, Pcell_log, mtu, linklayer) < 0) { in tbf_parse_opt()
205 opt.mtu = tc_calc_xmittime(opt.peakrate.rate, mtu); in tbf_parse_opt()
212 if (opt.peakrate.rate) in tbf_parse_opt()
248 if (qopt->peakrate.rate) { in tbf_print_opt()
249 fprintf(f, "peakrate %s ", sprint_rate(qopt->peakrate.rate, b1)); in tbf_print_opt()
250 if (qopt->mtu || qopt->peakrate.mpu) { in tbf_print_opt()
251 mtu = tc_calc_xmitsize(qopt->peakrate.rate, qopt->mtu); in tbf_print_opt()
254 1<<qopt->peakrate.cell_log, sprint_size(qopt->peakrate.mpu, b2)); in tbf_print_opt()
267 if (qopt->peakrate.rate) { in tbf_print_opt()
268 …double lat2 = TIME_UNITS_PER_SEC*(qopt->limit/(double)qopt->peakrate.rate) - tc_core_tick2time(qop… in tbf_print_opt()