Lines Matching full:rate
36 " r2q DRR quantums are computed as rate in Bps/r2q {10}\n" in explain()
39 "... class add ... htb rate R1 [burst B1] [mpu B] [overhead O]\n" in explain()
42 " rate rate allocated to this class (class can still borrow)\n" in explain()
44 " mpu minimum packet size used in rate computations\n" in explain()
45 " overhead per-packet size overhead used in rate computations\n" in explain()
47 " ceil definite upper class rate (no borrows) {rate}\n" in explain()
49 " mtu max packet size we create rate map for {1600}\n" in explain()
189 } else if (strcmp(*argv, "rate") == 0) { in htb_parse_class_opt()
192 fprintf(stderr, "Double \"rate\" spec\n"); in htb_parse_class_opt()
196 explain1("rate"); in htb_parse_class_opt()
215 fprintf(stderr, "\"rate\" is required.\n"); in htb_parse_class_opt()
218 /* if ceil params are missing, use the same as rate */ in htb_parse_class_opt()
222 opt.rate.rate = (rate64 >= (1ULL << 32)) ? ~0U : rate64; in htb_parse_class_opt()
223 opt.ceil.rate = (ceil64 >= (1ULL << 32)) ? ~0U : ceil64; in htb_parse_class_opt()
225 /* compute minimal allowed burst from rate; mtu is added here to make in htb_parse_class_opt()
233 opt.rate.overhead = overhead; in htb_parse_class_opt()
236 opt.rate.mpu = mpu; in htb_parse_class_opt()
238 if (tc_calc_rtable(&opt.rate, rtab, cell_log, mtu, linklayer) < 0) { in htb_parse_class_opt()
239 fprintf(stderr, "htb: failed to calculate rate table.\n"); in htb_parse_class_opt()
245 fprintf(stderr, "htb: failed to calculate ceil rate table.\n"); in htb_parse_class_opt()
294 rate64 = hopt->rate.rate; in htb_print_opt()
300 ceil64 = hopt->ceil.rate; in htb_print_opt()
305 fprintf(f, "rate %s ", sprint_rate(rate64, b1)); in htb_print_opt()
306 if (hopt->rate.overhead) in htb_print_opt()
307 fprintf(f, "overhead %u ", hopt->rate.overhead); in htb_print_opt()
312 linklayer = (hopt->rate.linklayer & TC_LINKLAYER_MASK); in htb_print_opt()
318 1<<hopt->rate.cell_log, in htb_print_opt()
319 sprint_size(hopt->rate.mpu&0xFF, b2), in htb_print_opt()
320 sprint_size((hopt->rate.mpu>>8)&0xFF, b3)); in htb_print_opt()