Home | History | Annotate | Download | only in pfctl

Lines Matching refs:bw

146 print_altq(const struct pf_altq *a, unsigned level, struct node_queue_bw *bw,
150 print_queue(a, level, bw, 1, qopts);
171 if (bw != NULL && bw->bw_percent > 0) {
172 if (bw->bw_percent < 100)
173 printf("bandwidth %u%% ", bw->bw_percent);
183 print_queue(const struct pf_altq *a, unsigned level, struct node_queue_bw *bw,
195 if (bw != NULL && bw->bw_percent > 0) {
196 if (bw->bw_percent < 100)
197 printf("bandwidth %u%% ", bw->bw_percent);
222 eval_pfaltq(struct pfctl *pf, struct pf_altq *pa, struct node_queue_bw *bw,
227 if (bw->bw_absolute > 0)
228 pa->ifbandwidth = bw->bw_absolute;
235 } else if ((pa->ifbandwidth = eval_bwspec(bw, rate)) == 0)
293 eval_pfqueue(struct pfctl *pf, struct pf_altq *pa, struct node_queue_bw *bw,
330 pa->bandwidth = eval_bwspec(bw,
738 /* check the real-time service curve. reserve 20% of interface bw */
1206 eval_bwspec(struct node_queue_bw *bw, u_int32_t ref_bw)
1208 if (bw->bw_absolute > 0)
1209 return (bw->bw_absolute);
1211 if (bw->bw_percent > 0)
1212 return (ref_bw / 100 * bw->bw_percent);