Lines Matching defs:weight
137 #define W_WEIGHT 512 /* inverse of weight of EWMA (511/512) */
141 #define W_WEIGHT_1 128 /* inverse of weight of EWMA (127/128) */
145 #define W_WEIGHT_2 64 /* inverse of weight of EWMA (63/64) */
206 rio_alloc(int weight, struct redparams *params, int flags, int pkttime)
223 if (weight != 0)
224 rp->rio_weight = weight;
240 /* calculate wshift. weight must be power of 2 */
247 printf("invalid weight value %d for red! use %d\n",
252 /* allocate weight table */
609 q_stats->weight = rp->rio_weight;