Lines Matching refs:mtu
45 unsigned buffer=0, mtu=0, mpu=0, latency=0; in tbf_parse_opt() local
92 if (mtu) { in tbf_parse_opt()
96 if (get_size_and_cell(&mtu, &Pcell_log, *argv) < 0) { in tbf_parse_opt()
169 if (!mtu) { in tbf_parse_opt()
183 double lim2 = opt.peakrate.rate*(double)latency/TIME_UNITS_PER_SEC + mtu; in tbf_parse_opt()
192 if (tc_calc_rtable(&opt.rate, rtab, Rcell_log, mtu, linklayer) < 0) { 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()
222 double buffer, mtu; in tbf_print_opt() local
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()
253 fprintf(f, "mtu %s/%u mpu %s ", sprint_size(mtu, b1), in tbf_print_opt()
256 fprintf(f, "minburst %s ", sprint_size(mtu, b1)); in tbf_print_opt()
259 fprintf(f, "[%08x] ", qopt->mtu); in tbf_print_opt()
268 …lat2 = TIME_UNITS_PER_SEC*(qopt->limit/(double)qopt->peakrate.rate) - tc_core_tick2time(qopt->mtu); in tbf_print_opt()