Lines Matching defs:weight
384 qfq_add_queue(struct qfq_if *qif, u_int32_t qlimit, u_int32_t weight,
396 if (weight == 0 || weight > QFQ_MAX_WEIGHT)
399 w = (QFQ_ONE_FP / (QFQ_ONE_FP / weight));
406 cl = qfq_class_create(qif, weight, qlimit, flags, maxsz, qid);
417 qfq_class_create(struct qfq_if *qif, u_int32_t weight, u_int32_t qlimit,
424 u_int32_t w; /* approximated weight */
515 w = weight;
636 log(LOG_DEBUG, "%s: %s created qid=%d grp=%d weight=%d "
638 cl->cl_handle, cl->cl_grp->qfg_index, weight, qlimit,
670 cl->cl_inv_w = 0; /* reset weight to avoid run twice */
1459 log(LOG_DEBUG, "%s: %s purge qid=%d weight=%d "
1480 log(LOG_DEBUG, "%s: %s update qid=%d weight=%d event=%s\n",
1515 sp->weight = (QFQ_ONE_FP / cl->cl_inv_w);
1604 * Calculate a flow index, given its weight and maximum packet length.
1605 * index = log_2(maxlen/weight) but we need to apply the scaling.