Lines Matching refs:cong_wnd
19 uint64_t bytes_in_flight, cong_wnd, slow_start_thresh, bytes_acked; member
88 nr->cong_wnd = nr->k_init_wnd; in newreno_set_max_dgram_size()
101 nr->cong_wnd = nr->k_init_wnd; in newreno_reset()
221 *nr->p_diag_cur_cwnd_size = nr->cong_wnd; in newreno_update_diag()
232 else if (nr->cong_wnd < nr->slow_start_thresh) in newreno_update_diag()
258 = safe_muldiv_u64(nr->cong_wnd, in newreno_cong()
266 nr->cong_wnd = nr->slow_start_thresh; in newreno_cong()
267 if (nr->cong_wnd < nr->k_min_wnd) in newreno_cong()
268 nr->cong_wnd = nr->k_min_wnd; in newreno_cong()
279 nr->cong_wnd = nr->k_min_wnd; in newreno_flush()
291 if (nr->bytes_in_flight >= nr->cong_wnd) in newreno_get_tx_allowance()
294 return nr->cong_wnd - nr->bytes_in_flight; in newreno_get_tx_allowance()
325 if (nr->bytes_in_flight >= nr->cong_wnd) in newreno_is_cong_limited()
328 wnd_rem = nr->cong_wnd - nr->bytes_in_flight; in newreno_is_cong_limited()
335 return (nr->cong_wnd < nr->slow_start_thresh && wnd_rem <= nr->cong_wnd / 2) in newreno_is_cong_limited()
379 } else if (nr->cong_wnd < nr->slow_start_thresh) { in newreno_on_data_acked()
381 nr->cong_wnd += info->tx_size; in newreno_on_data_acked()
390 if (nr->bytes_acked >= nr->cong_wnd) { in newreno_on_data_acked()
391 nr->bytes_acked -= nr->cong_wnd; in newreno_on_data_acked()
392 nr->cong_wnd += nr->max_dgram_size; in newreno_on_data_acked()