Lines Matching full:bandwidth
248 printf("bandwidth %u%% ", bw->bw_percent); in print_altq()
250 printf("bandwidth %s ", rate2str((double)a->ifbandwidth)); in print_altq()
278 printf("bandwidth %u%% ", bw->bw_percent); in print_queue()
280 printf("bandwidth %s ", rate2str((double)a->bandwidth)); in print_queue()
316 fprintf(stderr, "interface %s does not know its bandwidth, " in eval_pfaltq()
317 "please specify an absolute bandwidth\n", in eval_pfaltq()
324 * Limit bandwidth to UINT_MAX for schedulers that aren't 64-bit ready. in eval_pfaltq()
328 warnx("interface %s bandwidth limited to %" PRIu64 " bps " in eval_pfaltq()
425 pa->bandwidth = eval_bwspec(bw, in eval_pfqueue()
426 parent == NULL ? pa->ifbandwidth : parent->pa.bandwidth); in eval_pfqueue()
428 if (pa->bandwidth > pa->ifbandwidth) { in eval_pfqueue()
429 fprintf(stderr, "bandwidth for %s higher than " in eval_pfqueue()
435 * bandwidths is less than the parent's bandwidth. For in eval_pfqueue()
442 if (pa->bandwidth > parent->pa.bandwidth) { in eval_pfqueue()
443 warnx("bandwidth for %s higher than parent", in eval_pfqueue()
447 parent->meta.bwsum += pa->bandwidth; in eval_pfqueue()
448 if (parent->meta.bwsum > parent->pa.bandwidth) { in eval_pfqueue()
449 warnx("the sum of the child bandwidth (%" PRIu64 in eval_pfqueue()
452 parent->pa.bandwidth); in eval_pfqueue()
458 parent == NULL ? pa->ifbandwidth : parent->pa.bandwidth)) in eval_pfqueue()
546 if (pa->bandwidth == 0) in cbq_compute_idletime()
549 f = ((double) pa->bandwidth / (double) pa->ifbandwidth); in cbq_compute_idletime()
558 * (bandwidth < 6Kbps when max_pkt_size=1500) in cbq_compute_idletime()
560 if (pa->bandwidth != 0 && (pf->opts & PF_OPT_QUIET) == 0) { in cbq_compute_idletime()
561 warnx("queue bandwidth must be larger than %s", in cbq_compute_idletime()
773 /* if link_share is not specified, use bandwidth */ in eval_pfqueue_hfsc()
775 opts->lssc_m2 = pa->bandwidth; in eval_pfqueue_hfsc()
794 * should not exceed 80% of the interface bandwidth. 20% is reserved in eval_pfqueue_hfsc()
795 * not to over-commit the actual interface bandwidth. in eval_pfqueue_hfsc()
798 * for the upper-limit service curve, the assigned bandwidth should in eval_pfqueue_hfsc()
799 * be smaller than the interface bandwidth, and the upper-limit should in eval_pfqueue_hfsc()
816 "bandwidth (%s)", rate2str((double)sc.m2)); in eval_pfqueue_hfsc()
842 warnx("upper-limit larger than interface bandwidth"); in eval_pfqueue_hfsc()
887 /* if link_share is not specified, use bandwidth */ in eval_pfqueue_fairq()
889 opts->lssc_m2 = pa->bandwidth; in eval_pfqueue_fairq()
894 * should not exceed 80% of the interface bandwidth. 20% is reserved in eval_pfqueue_fairq()
895 * not to over-commit the actual interface bandwidth. in eval_pfqueue_fairq()
898 * for the upper-limit service curve, the assigned bandwidth should in eval_pfqueue_fairq()
899 * be smaller than the interface bandwidth, and the upper-limit should in eval_pfqueue_fairq()
963 (opts->lssc_m2 != 0 && (opts->lssc_m2 != a->bandwidth || in print_hfsc_opts()
981 if (opts->lssc_m2 != 0 && (opts->lssc_m2 != a->bandwidth || in print_hfsc_opts()
1030 (opts->lssc_m2 != 0 && (opts->lssc_m2 != a->bandwidth || in print_fairq_opts()
1045 if (opts->lssc_m2 != 0 && (opts->lssc_m2 != a->bandwidth || in print_fairq_opts()
1370 * If absolute bandwidth if set, return the lesser of that value and the
1371 * reference bandwidth. Limiting to the reference bandwidth allows simple
1372 * limiting of configured bandwidth parameters for schedulers that are
1373 * 32-bit limited, as the root/interface bandwidth (top-level reference
1374 * bandwidth) will be properly limited in that case.
1376 * Otherwise, if the absolute bandwidth is not set, return given percentage
1377 * of reference bandwidth.