Home
last modified time | relevance | path

Searched refs:cell_log (Results 1 – 15 of 15) sorted by relevance

/external/iproute2/tc/
Dtc_core.c110 int cell_log, unsigned mtu, in tc_calc_rtable() argument
121 if (cell_log < 0) { in tc_calc_rtable()
122 cell_log = 0; in tc_calc_rtable()
123 while ((mtu >> cell_log) > 255) in tc_calc_rtable()
124 cell_log++; in tc_calc_rtable()
128 sz = tc_adjust_size((i + 1) << cell_log, mpu, linklayer); in tc_calc_rtable()
133 r->cell_log=cell_log; in tc_calc_rtable()
134 return cell_log; in tc_calc_rtable()
151 s->cell_log = 0; in tc_calc_size_table()
162 s->cell_log = 0; in tc_calc_size_table()
[all …]
Dq_htb.c107 int cell_log=-1,ccell_log = -1; in htb_parse_class_opt() local
152 if (get_size_and_cell(&buffer, &cell_log, *argv) < 0) { in htb_parse_class_opt()
220 if (tc_calc_rtable(&opt.rate, rtab, cell_log, mtu, linklayer) < 0) { in htb_parse_class_opt()
273 1<<hopt->rate.cell_log, in htb_print_opt()
278 1<<hopt->ceil.cell_log, in htb_print_opt()
Dq_cbq.c58 int cell_log=-1; in cbq_parse_opt() local
98 cell_log = i; in cbq_parse_opt()
154 if (tc_calc_rtable(&r, rtab, cell_log, allot, linklayer) < 0) { in cbq_parse_opt()
191 int cell_log=-1; in cbq_parse_class_opt() local
277 cell_log = i; in cbq_parse_class_opt()
365 if (tc_calc_rtable(&r, rtab, cell_log, pktsize, linklayer) < 0) { in cbq_parse_class_opt()
490 fprintf(f, "cell %ub ", 1<<r->cell_log); in cbq_print_opt()
Dtc_util.c170 int get_rate_and_cell(unsigned *rate, int *cell_log, char *str) in get_rate_and_cell() argument
190 *cell_log = i; in get_rate_and_cell()
308 int get_size_and_cell(unsigned *size, int *cell_log, char *str) in get_size_and_cell() argument
328 *cell_log = i; in get_size_and_cell()
Dtc_core.h24 int cell_log, unsigned mtu, enum link_layer link_layer);
Dq_tbf.c242 1<<qopt->rate.cell_log, sprint_size(qopt->rate.mpu, b2)); in tbf_print_opt()
254 1<<qopt->peakrate.cell_log, sprint_size(qopt->peakrate.mpu, b2)); in tbf_print_opt()
Dtc_util.h66 extern int get_size_and_cell(unsigned *size, int *cell_log, char *str);
/external/libnl/lib/route/sch/
Dtbf.c369 int cell_log; in rtnl_qdisc_tbf_set_rate() local
375 cell_log = calc_cell_log(cell, bucket); in rtnl_qdisc_tbf_set_rate()
376 if (cell_log < 0) in rtnl_qdisc_tbf_set_rate()
377 return cell_log; in rtnl_qdisc_tbf_set_rate()
381 tbf->qt_rate.rs_cell_log = cell_log; in rtnl_qdisc_tbf_set_rate()
448 int cell_log; in rtnl_qdisc_tbf_set_peakrate() local
454 cell_log = calc_cell_log(cell, bucket); in rtnl_qdisc_tbf_set_peakrate()
455 if (cell_log < 0) in rtnl_qdisc_tbf_set_peakrate()
456 return cell_log; in rtnl_qdisc_tbf_set_peakrate()
460 tbf->qt_peakrate.rs_cell_log = cell_log; in rtnl_qdisc_tbf_set_peakrate()
Dhtb.c257 uint8_t cell_log = 0; in compute_cell() local
260 cell_log++; in compute_cell()
263 return cell_log; in compute_cell()
295 if (opts.rate.cell_log == UINT8_MAX) in htb_class_get_opts()
296 opts.rate.cell_log = compute_cell(opts.rate.rate, mtu); in htb_class_get_opts()
304 if (opts.ceil.cell_log == UINT8_MAX) in htb_class_get_opts()
305 opts.ceil.cell_log = compute_cell(opts.ceil.rate, mtu); in htb_class_get_opts()
336 1 << opts.rate.cell_log, in htb_class_get_opts()
341 1 << opts.ceil.cell_log, in htb_class_get_opts()
Dcbq.c201 1 << cbq->cbq_rate.cell_log, in cbq_dump_details()
/external/libnl/lib/route/
Dtc.c449 int i, size, cell_log; in rtnl_tc_build_rate_table() local
451 cell_log = rtnl_tc_calc_cell_log(cell); in rtnl_tc_build_rate_table()
452 if (cell_log < 0) in rtnl_tc_build_rate_table()
453 return cell_log; in rtnl_tc_build_rate_table()
456 size = (i << cell_log) + overhead; in rtnl_tc_build_rate_table()
/external/libnl/include/
Dnetlink-local.h147 dst->rs_cell_log = src->cell_log; in rtnl_copy_ratespec()
157 dst->cell_log = src->rs_cell_log; in rtnl_rcopy_ratespec()
/external/iproute2/include/linux/
Dpkt_sched.h77 unsigned char cell_log; member
88 unsigned char cell_log; member
/external/kernel-headers/original/uapi/linux/
Dpkt_sched.h85 unsigned char cell_log; member
96 unsigned char cell_log; member
/external/libnl/include/linux/
Dpkt_sched.h78 unsigned char cell_log; member