Lines Matching refs:bandwidth

115 	u_int  	bandwidth = 100000000;	/* 100Mbps */
126 if (EQUAL(*argv, "bandwidth")) {
129 bandwidth = atobps(*argv);
154 if (qcmd_tbr_register(ifname, bandwidth, tbrsize) != 0)
158 if (qcmd_cbq_add_if(ifname, bandwidth,
172 u_int bandwidth = 0;
241 bandwidth = atobps(*argv);
291 if (bandwidth == 0 && pbandwidth != 0) {
295 bandwidth = ifinfo->bandwidth / 100 * pbandwidth;
299 pri, bandwidth,
312 qcmd_cbq_add_if(const char *ifname, u_int bandwidth, int is_wrr, int efficient,
317 error = qop_cbq_add_if(NULL, ifname, bandwidth, is_wrr, efficient,
328 u_int pri, u_int bandwidth,
357 /* reserve bandwidth for ctl_class */
359 ifinfo->bandwidth / 100 * CTL_PBANDWIDTH;
360 if (bandwidth <= ctl_bandwidth)
362 "bandwidth for default class too small!");
363 bandwidth -= ctl_bandwidth;
369 borrow, pri, bandwidth,
405 u_int pri, u_int bandwidth,
418 return qop_cbq_modify_class(clinfo, pri, bandwidth,
482 u_int bandwidth, int is_wrr, int efficient, bool no_control)
492 (1.0 / (double)bandwidth) * PS_PER_SEC * 8;
497 error = qop_add_if(&ifinfo, ifname, bandwidth,
523 struct classinfo *borrow, u_int pri, u_int bandwidth,
549 if (bandwidth >
550 parent_clinfo->bandwidth - parent_clinfo->allocated) {
553 "bandwidth overcommitted %uK requested but only %dK available (%uK already allocated)",
554 bandwidth / 1000,
555 ((int)parent_clinfo->bandwidth -
561 bandwidth / 1000,
562 (parent_clinfo->bandwidth -
573 cbq_clinfo->bandwidth = bandwidth;
599 bandwidth, maxdelay, maxburst, minburst,
618 parent_clinfo->allocated += bandwidth;
665 parent_clinfo->allocated -= cbq_clinfo->bandwidth;
671 qop_cbq_modify_class(struct classinfo *clinfo, u_int pri, u_int bandwidth,
685 old_bandwidth = cbq_clinfo->bandwidth;
688 if (bandwidth > old_bandwidth) {
689 /* increase bandwidth */
690 if (bandwidth - old_bandwidth >
691 parent_clinfo->bandwidth
694 } else if (bandwidth < old_bandwidth) {
695 /* decrease bandwidth */
696 if (bandwidth < cbq_clinfo->allocated)
724 bandwidth, maxdelay, maxburst, minburst,
736 parent_clinfo->allocated += bandwidth;
738 cbq_clinfo->bandwidth = bandwidth;
769 u_int bandwidth, u_int maxdelay, u_int maxburst,
783 if (bandwidth == 0)
786 f = ((double) bandwidth / (double) ifinfo->bandwidth);
877 if (bandwidth == 0 && borrow_class == NULL_CLASS_HANDLE)