• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/netinet/cc/

Lines Matching defs:alpha

85 /* RTT_ref (ms) used in the calculation of alpha if RTT scaling is enabled. */
93 * value of alpha, based on the function defined in the HTCP spec.
107 * The "16" value is the "1" term in the alpha function shifted up by
110 * The "160" value is the "10" multiplier in the alpha function multiplied by
119 * different tick timers, which we have to adjust for in the alpha calculation
153 int alpha;
167 * htcp_recalc_alpha() before alpha will stop increasing due to overflow.
213 * or a congestion event (when alpha equals 1).
215 if (htcp_data->alpha == 1 ||
220 /* Increment cwnd by alpha segments. */
221 CCV(ccv, snd_cwnd) += htcp_data->alpha *
226 * Increment cwnd by alpha/cwnd segments to
227 * approximate an increase of alpha segments
230 CCV(ccv, snd_cwnd) += (((htcp_data->alpha <<
255 htcp_data->alpha = HTCP_INIT_ALPHA;
392 int alpha, diff, now;
400 * the wrap point, our alpha calcs will be completely wrong. We cut our
401 * losses and restart alpha from scratch by setting t_last_cong = now -
405 * is growing by until alpha regains the value it held prior to taking
413 /* Cap alpha if the value of diff would overflow HTCP_CALC_ALPHA(). */
417 * increase alpha according to the function defined in the spec.
420 alpha = HTCP_CALC_ALPHA(diff);
427 alpha = max(1, (2 * ((1 << HTCP_SHIFT) -
428 htcp_data->beta) * alpha) >> HTCP_SHIFT);
431 * RTT scaling: (RTT / RTT_ref) * alpha
432 * alpha will be the raw value from HTCP_CALC_ALPHA() if
437 alpha = max(1, (min(max(HTCP_MINROWE,
439 htcp_rtt_ref), HTCP_MAXROWE) * alpha)
443 alpha = 1;
445 htcp_data->alpha = alpha;