Lines Matching refs:hopt
269 struct tc_htb_opt *hopt; in htb_print_opt() local
285 hopt = RTA_DATA(tb[TCA_HTB_PARMS]); in htb_print_opt()
286 if (RTA_PAYLOAD(tb[TCA_HTB_PARMS]) < sizeof(*hopt)) return -1; in htb_print_opt()
288 if (!hopt->level) { in htb_print_opt()
289 fprintf(f, "prio %d ", (int)hopt->prio); in htb_print_opt()
291 fprintf(f, "quantum %d ", (int)hopt->quantum); in htb_print_opt()
294 rate64 = hopt->rate.rate; in htb_print_opt()
300 ceil64 = hopt->ceil.rate; 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()
308 buffer = tc_calc_xmitsize(rate64, hopt->buffer); in htb_print_opt()
311 cbuffer = tc_calc_xmitsize(ceil64, hopt->cbuffer); 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()
323 1<<hopt->ceil.cell_log, in htb_print_opt()
324 sprint_size(hopt->ceil.mpu&0xFF, b2), in htb_print_opt()
325 sprint_size((hopt->ceil.mpu>>8)&0xFF, b3)); in htb_print_opt()
326 fprintf(f, "level %d ", (int)hopt->level); in htb_print_opt()
333 hopt->buffer,hopt->cbuffer); in htb_print_opt()