Lines Matching refs:hopt
267 struct tc_htb_opt *hopt; in htb_print_opt() local
283 hopt = RTA_DATA(tb[TCA_HTB_PARMS]); in htb_print_opt()
284 if (RTA_PAYLOAD(tb[TCA_HTB_PARMS]) < sizeof(*hopt)) return -1; in htb_print_opt()
286 if (!hopt->level) { in htb_print_opt()
287 fprintf(f, "prio %d ", (int)hopt->prio); in htb_print_opt()
289 fprintf(f, "quantum %d ", (int)hopt->quantum); in htb_print_opt()
292 rate64 = hopt->rate.rate; in htb_print_opt()
298 ceil64 = hopt->ceil.rate; in htb_print_opt()
304 if (hopt->rate.overhead) in htb_print_opt()
305 fprintf(f, "overhead %u ", hopt->rate.overhead); in htb_print_opt()
306 buffer = tc_calc_xmitsize(rate64, hopt->buffer); in htb_print_opt()
309 cbuffer = tc_calc_xmitsize(ceil64, hopt->cbuffer); in htb_print_opt()
310 linklayer = (hopt->rate.linklayer & TC_LINKLAYER_MASK); in htb_print_opt()
316 1<<hopt->rate.cell_log, in htb_print_opt()
317 sprint_size(hopt->rate.mpu, b2)); in htb_print_opt()
320 1<<hopt->ceil.cell_log, in htb_print_opt()
321 sprint_size(hopt->ceil.mpu, b2)); in htb_print_opt()
322 fprintf(f, "level %d ", (int)hopt->level); in htb_print_opt()
329 hopt->buffer, hopt->cbuffer); in htb_print_opt()