Home
last modified time | relevance | path

Searched refs:bndw (Results 1 – 3 of 3) sorted by relevance

/external/iproute2/tc/
Dtc_cbq.c27 unsigned int tc_cbq_calc_maxidle(unsigned int bndw, unsigned int rate, unsigned int avpkt, in tc_cbq_calc_maxidle() argument
32 double xmt = (double)avpkt/bndw; in tc_cbq_calc_maxidle()
35 if (bndw != rate && maxburst) { in tc_cbq_calc_maxidle()
45 unsigned int tc_cbq_calc_offtime(unsigned int bndw, unsigned int rate, unsigned int avpkt, in tc_cbq_calc_offtime() argument
49 double offtime = (double)avpkt/rate - (double)avpkt/bndw; in tc_cbq_calc_offtime()
Dtc_cbq.h4 unsigned tc_cbq_calc_maxidle(unsigned bndw, unsigned rate, unsigned avpkt,
6 unsigned tc_cbq_calc_offtime(unsigned bndw, unsigned rate, unsigned avpkt,
Dq_cbq.c191 unsigned int bndw = 0; in cbq_parse_class_opt() local
206 if (get_rate(&bndw, *argv)) { in cbq_parse_class_opt()
374 if (bndw == 0 || r.rate == 0) { in cbq_parse_class_opt()
394 lss.maxidle = tc_cbq_calc_maxidle(bndw, r.rate, lss.avpkt, ewma_log, maxburst); in cbq_parse_class_opt()
399 lss.offtime = tc_cbq_calc_offtime(bndw, r.rate, lss.avpkt, ewma_log, minburst); in cbq_parse_class_opt()