Lines Matching refs:mtu
45 unsigned buffer = 0, mtu = 0, mpu = 0, latency = 0; in tbf_parse_opt() local
103 if (mtu) { in tbf_parse_opt()
107 if (get_size_and_cell(&mtu, &Pcell_log, *argv) < 0) { in tbf_parse_opt()
185 if (!mtu) { in tbf_parse_opt()
208 double lim2 = prate64*(double)latency/TIME_UNITS_PER_SEC + mtu; in tbf_parse_opt()
218 if (tc_calc_rtable(&opt.rate, rtab, Rcell_log, mtu, linklayer) < 0) { in tbf_parse_opt()
227 if (tc_calc_rtable(&opt.peakrate, ptab, Pcell_log, mtu, linklayer) < 0) { in tbf_parse_opt()
231 opt.mtu = tc_calc_xmittime(opt.peakrate.rate, mtu); in tbf_parse_opt()
244 addattr_l(n, 3224, TCA_TBF_PBURST, &mtu, sizeof(mtu)); in tbf_parse_opt()
256 double buffer, mtu; in tbf_print_opt() local
295 if (qopt->mtu || qopt->peakrate.mpu) { in tbf_print_opt()
296 mtu = tc_calc_xmitsize(prate64, qopt->mtu); in tbf_print_opt()
298 fprintf(f, "mtu %s/%u mpu %s ", sprint_size(mtu, b1), in tbf_print_opt()
301 fprintf(f, "minburst %s ", sprint_size(mtu, b1)); in tbf_print_opt()
304 fprintf(f, "[%08x] ", qopt->mtu); in tbf_print_opt()
310 double lat2 = TIME_UNITS_PER_SEC*(qopt->limit/(double)prate64) - tc_core_tick2time(qopt->mtu); in tbf_print_opt()