Lines Matching defs:weight
49 ratio between the maximum packet length for the class and the weight
61 QFQ_MAX_WSHIFT is the maximum power of two supported as a weight.
83 static and adaptive weight sum.
149 * which is log_2(lmax/weight), but we never reference it
187 u32 wsum; /* weight sum */
188 u32 iwsum; /* inverse weight sum */
229 * Calculate a flow index, given its weight and maximum packet length.
230 * index = log_2(maxlen/weight) but we need to apply the scaling.
260 u32 lmax, u32 weight)
266 agg->class_weight = weight;
270 u32 lmax, u32 weight)
275 if (agg->lmax == lmax && agg->class_weight == weight)
379 /* Move class to a new aggregate, matching the new class weight and/or lmax */
380 static int qfq_change_agg(struct Qdisc *sch, struct qfq_class *cl, u32 weight,
390 new_agg = qfq_find_agg(q, lmax, weight);
395 qfq_init_agg(q, new_agg, lmax, weight);
412 u32 weight, lmax, inv_w;
427 weight = nla_get_u32(tb[TCA_QFQ_WEIGHT]);
429 weight = 1;
443 inv_w = ONE_FP / weight;
444 weight = ONE_FP / inv_w;
448 weight == cl->agg->class_weight)
451 delta_w = weight - (cl ? cl->agg->class_weight : 0);
454 pr_notice("qfq: total weight out of range (%d + %u)\n",
501 new_agg = qfq_find_agg(q, lmax, weight);
511 qfq_init_agg(q, new_agg, lmax, weight);
648 xstats.weight = cl->agg->class_weight;
868 * weight of a class is increased or the lmax (max_pkt_size) of the