Lines Matching refs:qopt
203 struct tc_tbf_qopt *qopt;
217 qopt = RTA_DATA(tb[TCA_TBF_PARMS]);
218 if (RTA_PAYLOAD(tb[TCA_TBF_PARMS]) < sizeof(*qopt))
220 fprintf(f, "rate %s ", sprint_rate(qopt->rate.rate, b1));
221 buffer = ((double)qopt->rate.rate*tc_core_tick2usec(qopt->buffer))/1000000;
224 1<<qopt->rate.cell_log, sprint_size(qopt->rate.mpu, b2));
229 fprintf(f, "[%08x] ", qopt->buffer);
230 if (qopt->peakrate.rate) {
231 fprintf(f, "peakrate %s ", sprint_rate(qopt->peakrate.rate, b1));
232 if (qopt->mtu || qopt->peakrate.mpu) {
233 mtu = ((double)qopt->peakrate.rate*tc_core_tick2usec(qopt->mtu))/1000000;
236 1<<qopt->peakrate.cell_log, sprint_size(qopt->peakrate.mpu, b2));
241 fprintf(f, "[%08x] ", qopt->mtu);
246 fprintf(f, "limit %s ", sprint_size(qopt->limit, b1));
248 latency = 1000000*(qopt->limit/(double)qopt->rate.rate) - tc_core_tick2usec(qopt->buffer);
249 if (qopt->peakrate.rate) {
250 double lat2 = 1000000*(qopt->limit/(double)qopt->peakrate.rate) - tc_core_tick2usec(qopt->mtu);