Lines Matching refs:rate
35 " r2q DRR quantums are computed as rate in Bps/r2q {10}\n"
37 "... class add ... htb rate R1 [burst B1] [mpu B] [overhead O]\n"
40 " rate rate allocated to this class (class can still borrow)\n"
42 " mpu minimum packet size used in rate computations\n"
43 " overhead per-packet size overhead used in rate computations\n"
45 " ceil definite upper class rate (no borrows) {rate}\n"
47 " mtu max packet size we create rate map for {1600}\n"
168 if (opt.ceil.rate) {
172 if (get_rate(&opt.ceil.rate, *argv)) {
177 } else if (strcmp(*argv, "rate") == 0) {
179 if (opt.rate.rate) {
180 fprintf(stderr, "Double \"rate\" spec\n");
183 if (get_rate(&opt.rate.rate, *argv)) {
184 explain1("rate");
202 if (opt.rate.rate == 0) {
203 fprintf(stderr, "\"rate\" is required.\n");
206 /* if ceil params are missing, use the same as rate */
207 if (!opt.ceil.rate) opt.ceil = opt.rate;
209 /* compute minimal allowed burst from rate; mtu is added here to make
211 if (!buffer) buffer = opt.rate.rate / get_hz() + mtu;
212 if (!cbuffer) cbuffer = opt.ceil.rate / get_hz() + mtu;
215 opt.rate.overhead = overhead;
218 opt.rate.mpu = mpu;
220 if (tc_calc_rtable(&opt.rate, rtab, cell_log, mtu, linklayer) < 0) {
221 fprintf(stderr, "htb: failed to calculate rate table.\n");
224 opt.buffer = tc_calc_xmittime(opt.rate.rate, buffer);
227 fprintf(stderr, "htb: failed to calculate ceil rate table.\n");
230 opt.cbuffer = tc_calc_xmittime(opt.ceil.rate, cbuffer);
266 fprintf(f, "rate %s ", sprint_rate(hopt->rate.rate, b1));
267 buffer = tc_calc_xmitsize(hopt->rate.rate, hopt->buffer);
268 fprintf(f, "ceil %s ", sprint_rate(hopt->ceil.rate, b1));
269 cbuffer = tc_calc_xmitsize(hopt->ceil.rate, hopt->cbuffer);
273 1<<hopt->rate.cell_log,
274 sprint_size(hopt->rate.mpu&0xFF, b2),
275 sprint_size((hopt->rate.mpu>>8)&0xFF, b3));