Lines Matching refs:qopt
252 struct tc_tbf_qopt *qopt; in tbf_print_opt() local
269 qopt = RTA_DATA(tb[TCA_TBF_PARMS]); in tbf_print_opt()
270 if (RTA_PAYLOAD(tb[TCA_TBF_PARMS]) < sizeof(*qopt)) in tbf_print_opt()
272 rate64 = qopt->rate.rate; in tbf_print_opt()
277 buffer = tc_calc_xmitsize(rate64, qopt->buffer); in tbf_print_opt()
280 1<<qopt->rate.cell_log, sprint_size(qopt->rate.mpu, b2)); in tbf_print_opt()
285 fprintf(f, "[%08x] ", qopt->buffer); in tbf_print_opt()
286 prate64 = qopt->peakrate.rate; in tbf_print_opt()
292 if (qopt->mtu || qopt->peakrate.mpu) { in tbf_print_opt()
293 mtu = tc_calc_xmitsize(prate64, qopt->mtu); in tbf_print_opt()
296 1<<qopt->peakrate.cell_log, sprint_size(qopt->peakrate.mpu, b2)); in tbf_print_opt()
301 fprintf(f, "[%08x] ", qopt->mtu); in tbf_print_opt()
305 latency = TIME_UNITS_PER_SEC*(qopt->limit/(double)rate64) - tc_core_tick2time(qopt->buffer); in tbf_print_opt()
307 double lat2 = TIME_UNITS_PER_SEC*(qopt->limit/(double)prate64) - tc_core_tick2time(qopt->mtu); in tbf_print_opt()
314 fprintf(f, "limit %s ", sprint_size(qopt->limit, b1)); in tbf_print_opt()
316 if (qopt->rate.overhead) { in tbf_print_opt()
317 fprintf(f, "overhead %d", qopt->rate.overhead); in tbf_print_opt()
319 linklayer = (qopt->rate.linklayer & TC_LINKLAYER_MASK); in tbf_print_opt()