Lines Matching refs:qopt
221 struct tc_tbf_qopt *qopt; in tbf_print_opt() local
235 qopt = RTA_DATA(tb[TCA_TBF_PARMS]); in tbf_print_opt()
236 if (RTA_PAYLOAD(tb[TCA_TBF_PARMS]) < sizeof(*qopt)) in tbf_print_opt()
238 fprintf(f, "rate %s ", sprint_rate(qopt->rate.rate, b1)); in tbf_print_opt()
239 buffer = tc_calc_xmitsize(qopt->rate.rate, qopt->buffer); in tbf_print_opt()
242 1<<qopt->rate.cell_log, sprint_size(qopt->rate.mpu, b2)); in tbf_print_opt()
247 fprintf(f, "[%08x] ", qopt->buffer); in tbf_print_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()
259 fprintf(f, "[%08x] ", qopt->mtu); in tbf_print_opt()
264 fprintf(f, "limit %s ", sprint_size(qopt->limit, b1)); in tbf_print_opt()
266 …latency = TIME_UNITS_PER_SEC*(qopt->limit/(double)qopt->rate.rate) - tc_core_tick2time(qopt->buffe… 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()
274 if (qopt->rate.overhead) { in tbf_print_opt()
275 fprintf(f, "overhead %d", qopt->rate.overhead); in tbf_print_opt()