Lines Matching defs:wrr
174 struct tc_cbq_wrropt wrr;
187 memset(&wrr, 0, sizeof(wrr));
275 wrr.priority = prio;
279 if (get_size(&wrr.allot, *argv)) {
298 if (get_size(&wrr.weight, *argv)) {
336 unsigned pktsize = wrr.allot;
337 if (wrr.allot < (lss.avpkt*3)/2)
338 wrr.allot = (lss.avpkt*3)/2;
359 if (wrr.priority == 0 && (n->nlmsg_flags&NLM_F_EXCL)) {
361 wrr.priority = TC_CBQ_MAXPRIO;
362 if (wrr.allot == 0)
363 wrr.allot = (lss.avpkt*3)/2;
366 if (wrr.weight == 0)
367 wrr.weight = (wrr.priority == TC_CBQ_MAXPRIO) ? 1 : r.rate;
368 if (wrr.allot == 0) {
395 addattr_l(n, 1024, TCA_CBQ_WRROPT, &wrr, sizeof(wrr));
418 struct tc_cbq_wrropt *wrr = NULL;
441 if (RTA_PAYLOAD(tb[TCA_CBQ_WRROPT]) < sizeof(*wrr))
442 fprintf(stderr, "CBQ: too short wrr opt\n");
444 wrr = RTA_DATA(tb[TCA_CBQ_WRROPT]);
484 if (wrr) {
485 if (wrr->priority != TC_CBQ_MAXPRIO)
486 fprintf(f, "prio %u", wrr->priority);
491 fprintf(f, "/%u ", wrr->cpriority);
492 if (wrr->weight != 1) {
493 print_rate(buf, sizeof(buf), wrr->weight);
496 if (wrr->allot)
497 fprintf(f, "allot %ub ", wrr->allot);