Lines Matching defs:weight
89 int weight = 0; /* 0: use default */
120 } else if (EQUAL(*argv, "weight")) {
123 weight = (int)strtol(*argv, NULL, 0);
179 if (weight != 0) {
180 /* check if weight is power of 2 */
183 w = weight;
187 if (weight != w) {
188 LOG(LOG_ERR, 0, "weight %d: should be power of 2",
189 weight);
194 if (qcmd_rio_add_if(ifname, bandwidth, weight,
207 qcmd_rio_add_if(const char *ifname, u_int bandwidth, int weight,
226 error = qop_rio_add_if(NULL, ifname, bandwidth, weight, red_params,
239 u_int bandwidth, int weight, struct redparams *red_params,
250 rio_ifinfo->weight = weight;
298 conf.rio_weight = rio_ifinfo->weight;