Home
last modified time | relevance | path

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

/external/iproute2/tc/
Dq_tbf.c50 __u64 rate64 = 0, prate64 = 0; in tbf_parse_opt() local
125 if (rate64) { in tbf_parse_opt()
129 if (get_rate64(&rate64, *argv)) { in tbf_parse_opt()
176 if (rate64 == 0) { in tbf_parse_opt()
201 opt.rate.rate = (rate64 >= (1ULL << 32)) ? ~0U : rate64; in tbf_parse_opt()
205 double lim = rate64*(double)latency/TIME_UNITS_PER_SEC + buffer; in tbf_parse_opt()
236 if (rate64 >= (1ULL << 32)) in tbf_parse_opt()
237 addattr_l(n, 2124, TCA_TBF_RATE64, &rate64, sizeof(rate64)); in tbf_parse_opt()
256 __u64 rate64 = 0, prate64 = 0; in tbf_print_opt() local
272 rate64 = qopt->rate.rate; in tbf_print_opt()
[all …]
Dq_htb.c124 __u64 ceil64 = 0, rate64 = 0; in htb_parse_class_opt() local
191 if (rate64) { in htb_parse_class_opt()
195 if (get_rate64(&rate64, *argv)) { in htb_parse_class_opt()
214 if (!rate64) { in htb_parse_class_opt()
220 ceil64 = rate64; in htb_parse_class_opt()
222 opt.rate.rate = (rate64 >= (1ULL << 32)) ? ~0U : rate64; in htb_parse_class_opt()
228 buffer = rate64 / get_hz() + mtu; in htb_parse_class_opt()
242 opt.buffer = tc_calc_xmittime(rate64, buffer); in htb_parse_class_opt()
253 if (rate64 >= (1ULL << 32)) in htb_parse_class_opt()
254 addattr_l(n, 1124, TCA_HTB_RATE64, &rate64, sizeof(rate64)); in htb_parse_class_opt()
[all …]
Dq_netem.c186 __u64 rate64 = 0; in netem_parse_opt() local
407 if (get_rate64(&rate64, *argv)) { in netem_parse_opt()
513 if (rate64 >= (1ULL << 32)) { in netem_parse_opt()
515 TCA_NETEM_RATE64, &rate64, sizeof(rate64)) < 0) in netem_parse_opt()
519 rate.rate = rate64; in netem_parse_opt()
547 __u64 rate64 = 0; in netem_print_opt() local
599 if (RTA_PAYLOAD(tb[TCA_NETEM_RATE64]) < sizeof(rate64)) in netem_print_opt()
601 rate64 = rta_getattr_u64(tb[TCA_NETEM_RATE64]); in netem_print_opt()
664 if (rate64) in netem_print_opt()
665 fprintf(f, " rate %s", sprint_rate(rate64, b1)); in netem_print_opt()