MCPcopy Create free account
hub / github.com/F-Stack/f-stack / cubic_after_idle

Function cubic_after_idle

freebsd/netinet/cc/cc_cubic.c:236–248  ·  view source on GitHub ↗

* This is a Cubic specific implementation of after_idle. * - Reset cwnd by calling New Reno implementation of after_idle. * - Reset t_last_cong. */

Source from the content-addressed store, hash-verified

234 * - Reset t_last_cong.
235 */
236static void
237cubic_after_idle(struct cc_var *ccv)
238{
239 struct cubic *cubic_data;
240
241 cubic_data = ccv->cc_data;
242
243 cubic_data->max_cwnd = ulmax(cubic_data->max_cwnd, CCV(ccv, snd_cwnd));
244 cubic_data->K = cubic_k(cubic_data->max_cwnd / CCV(ccv, t_maxseg));
245
246 newreno_cc_algo.after_idle(ccv);
247 cubic_data->t_last_cong = ticks;
248}
249
250static void
251cubic_cb_destroy(struct cc_var *ccv)

Callers

nothing calls this directly

Calls 2

ulmaxFunction · 0.85
cubic_kFunction · 0.85

Tested by

no test coverage detected