• Home
  • Raw
  • Download

Lines Matching refs:wrr

186 	struct tc_cbq_wrropt wrr;  in cbq_parse_class_opt()  local
201 memset(&wrr, 0, sizeof(wrr)); in cbq_parse_class_opt()
289 wrr.priority = prio; in cbq_parse_class_opt()
293 if (get_size(&wrr.allot, *argv)) { in cbq_parse_class_opt()
312 if (get_size(&wrr.weight, *argv)) { in cbq_parse_class_opt()
360 unsigned pktsize = wrr.allot; in cbq_parse_class_opt()
361 if (wrr.allot < (lss.avpkt*3)/2) in cbq_parse_class_opt()
362 wrr.allot = (lss.avpkt*3)/2; in cbq_parse_class_opt()
383 if (wrr.priority == 0 && (n->nlmsg_flags&NLM_F_EXCL)) { in cbq_parse_class_opt()
385 wrr.priority = TC_CBQ_MAXPRIO; in cbq_parse_class_opt()
386 if (wrr.allot == 0) in cbq_parse_class_opt()
387 wrr.allot = (lss.avpkt*3)/2; in cbq_parse_class_opt()
390 if (wrr.weight == 0) in cbq_parse_class_opt()
391 wrr.weight = (wrr.priority == TC_CBQ_MAXPRIO) ? 1 : r.rate; in cbq_parse_class_opt()
392 if (wrr.allot == 0) { in cbq_parse_class_opt()
419 addattr_l(n, 1024, TCA_CBQ_WRROPT, &wrr, sizeof(wrr)); in cbq_parse_class_opt()
442 struct tc_cbq_wrropt *wrr = NULL; in cbq_print_opt() local
467 if (RTA_PAYLOAD(tb[TCA_CBQ_WRROPT]) < sizeof(*wrr)) in cbq_print_opt()
470 wrr = RTA_DATA(tb[TCA_CBQ_WRROPT]); in cbq_print_opt()
516 if (wrr) { in cbq_print_opt()
517 if (wrr->priority != TC_CBQ_MAXPRIO) in cbq_print_opt()
518 fprintf(f, "prio %u", wrr->priority); in cbq_print_opt()
523 fprintf(f, "/%u ", wrr->cpriority); in cbq_print_opt()
524 if (wrr->weight != 1) { in cbq_print_opt()
525 print_rate(buf, sizeof(buf), wrr->weight); in cbq_print_opt()
528 if (wrr->allot) in cbq_print_opt()
529 fprintf(f, "allot %ub ", wrr->allot); in cbq_print_opt()