Lines Matching refs:qopt
221 struct tc_tbf_qopt *qopt;
235 qopt = RTA_DATA(tb[TCA_TBF_PARMS]);
236 if (RTA_PAYLOAD(tb[TCA_TBF_PARMS]) < sizeof(*qopt))
238 fprintf(f, "rate %s ", sprint_rate(qopt->rate.rate, b1));
239 buffer = tc_calc_xmitsize(qopt->rate.rate, qopt->buffer);
242 1<<qopt->rate.cell_log, sprint_size(qopt->rate.mpu, b2));
247 fprintf(f, "[%08x] ", qopt->buffer);
248 if (qopt->peakrate.rate) {
249 fprintf(f, "peakrate %s ", sprint_rate(qopt->peakrate.rate, b1));
250 if (qopt->mtu || qopt->peakrate.mpu) {
251 mtu = tc_calc_xmitsize(qopt->peakrate.rate, qopt->mtu);
254 1<<qopt->peakrate.cell_log, sprint_size(qopt->peakrate.mpu, b2));
259 fprintf(f, "[%08x] ", qopt->mtu);
264 fprintf(f, "limit %s ", sprint_size(qopt->limit, b1));
266 latency = TIME_UNITS_PER_SEC*(qopt->limit/(double)qopt->rate.rate) - tc_core_tick2time(qopt->buffer);
267 if (qopt->peakrate.rate) {
268 double lat2 = TIME_UNITS_PER_SEC*(qopt->limit/(double)qopt->peakrate.rate) - tc_core_tick2time(qopt->mtu);
274 if (qopt->rate.overhead) {
275 fprintf(f, "overhead %d", qopt->rate.overhead);