Home | History | Annotate | Download | only in tc

Lines Matching refs:qopt

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