Lines Matching refs:ewma_log
57 int ewma_log=-1;
73 if (get_integer(&ewma_log, *argv, 0)) {
77 if (ewma_log > 31) {
78 fprintf(stderr, "ewma_log must be < 32\n");
147 if (ewma_log < 0)
148 ewma_log = TC_CBQ_DEF_EWMA;
149 lss.ewma_log = ewma_log;
150 lss.maxidle = tc_cbq_calc_maxidle(r.rate, r.rate, avpkt, lss.ewma_log, 0);
180 int ewma_log=-1;
239 if (get_integer(&ewma_log, *argv, 0)) {
243 if (ewma_log > 31) {
244 fprintf(stderr, "ewma_log must be < 32\n");
346 if (ewma_log < 0)
347 ewma_log = TC_CBQ_DEF_EWMA;
348 lss.ewma_log = ewma_log;
374 lss.maxidle = tc_cbq_calc_maxidle(bndw, r.rate, lss.avpkt, ewma_log, maxburst);
379 lss.offtime = tc_cbq_calc_offtime(bndw, r.rate, lss.avpkt, ewma_log, minburst);
384 lss.minidle <<= lss.ewma_log;
501 fprintf(f, "\nlevel %u ewma %u avpkt %ub ", lss->level, lss->ewma_log, lss->avpkt);
503 fprintf(f, "maxidle %luus ", tc_core_tick2usec(lss->maxidle>>lss->ewma_log));
508 fprintf(f, "minidle %luus ", tc_core_tick2usec(lss->minidle>>lss->ewma_log));