Searched refs:th_max (Results 1 - 4 of 4) sorted by relevance

/xnu-2422.115.4/bsd/net/classq/
H A Dclassq_red.h76 int th_max; /* red max threshold */ member in struct:redparams
122 int red_thmax_s; /* th_max scaled by avgshift */
H A Dclassq_rio.h92 int th_max; /* red max threshold */ member in struct:rio::dropprec_state
96 int th_max_s; /* th_max scaled by avgshift */
H A Dclassq_rio.c173 /* th_min, th_max, inv_pmax */
293 if (params == NULL || params[i].th_max == 0)
294 prec->th_max = default_rio_params[i].th_max;
296 prec->th_max = params[i].th_max;
300 * and th_max to be compared with avg.
303 prec->th_max_s = prec->th_max << (rp->rio_wshift + FP_SHIFT);
309 prec->probd = (2 * (prec->th_max - prec->th_min) *
433 /* avg >= th_max
[all...]
H A Dclassq_red.c218 int th_max, int flags, int pkttime)
246 if (th_max == 0)
249 rp->red_thmax = th_max;
292 * thmin_s and thmax_s are scaled versions of th_min and th_max
388 /* avg >= th_max: forced drop */
453 * prob = p_max * (avg - th_min) / (th_max - th_min)
455 * = (avg-th_min) / (2*(th_max-th_min)*inv_p_max - count*(avg-th_min))
472 * th_max-th_min=10 and p_max=1/30)
217 red_alloc(struct ifnet *ifp, int weight, int inv_pmax, int th_min, int th_max, int flags, int pkttime) argument

Completed in 71 milliseconds