Lines Matching +full:static +full:- +full:beta
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2008-2010 Lawrence Stewart <lstewart@freebsd.org>
61 /* (2 << CUBIC_SHIFT) - ONE_SUB_CUBIC_BETA. */
75 * and taking cube-root yields 448845 as the effective useful limit
134 * "draft-ietf-tcpm-cubic-04".
138 static __inline float
148 static __inline unsigned long
157 (C * pow(ticks_since_epoch / (double)hz - in theoretical_cubic_cwnd()
161 static __inline unsigned long
169 static __inline unsigned long
174 return ((wmax * 0.7) + ((3 * 0.3) / (2 - 0.3) * in theoretical_tf_cwnd()
182 * implementation of eqn 2 in the I-D. The method used
183 * here is adapted from Apple Computer Technical Report #KT-32.
185 static __inline int64_t
194 /* (wmax * beta)/C with CUBIC_SHIFT worth of precision. */ in cubic_k()
208 K = (((s * 275) >> CUBIC_SHIFT) + 98) - in cubic_k()
216 * Compute the new cwnd value using an implementation of eqn 1 from the I-D.
221 static __inline unsigned long
228 /* t - K, with CUBIC_SHIFT worth of precision. */ in cubic_cwnd()
229 cwnd = (((int64_t)usecs_since_epoch << CUBIC_SHIFT) - (K * hz * tick)) / in cubic_cwnd()
234 if (cwnd < -CUBED_ROOT_MAX_ULONG) in cubic_cwnd()
237 /* (t - K)^3, with CUBIC_SHIFT^3 worth of precision. */ in cubic_cwnd()
241 * C(t - K)^3 + wmax in cubic_cwnd()
259 * the last congestion event. The "TCP friendly" concept in the CUBIC I-D is
265 static __inline unsigned long
271 * For NewReno, beta = 0.5, therefore: W_tcp(t) = wmax*0.5 + t/RTT in reno_cwnd()
282 static __inline unsigned long