Lines Matching refs:cwnd
392 static u32 bbr_quantization_budget(struct sock *sk, u32 cwnd) in bbr_quantization_budget() argument
397 cwnd += 3 * bbr_tso_segs_goal(sk); in bbr_quantization_budget()
400 cwnd = (cwnd + 1) & ~1U; in bbr_quantization_budget()
404 cwnd += 2; in bbr_quantization_budget()
406 return cwnd; in bbr_quantization_budget()
483 u32 cwnd = tp->snd_cwnd; in bbr_set_cwnd_to_recover_or_restore() local
490 cwnd = max_t(s32, cwnd - rs->losses, 1); in bbr_set_cwnd_to_recover_or_restore()
497 cwnd = tcp_packets_in_flight(tp) + acked; in bbr_set_cwnd_to_recover_or_restore()
500 cwnd = max(cwnd, bbr->prior_cwnd); in bbr_set_cwnd_to_recover_or_restore()
506 *new_cwnd = max(cwnd, tcp_packets_in_flight(tp) + acked); in bbr_set_cwnd_to_recover_or_restore()
509 *new_cwnd = cwnd; in bbr_set_cwnd_to_recover_or_restore()
521 u32 cwnd = tp->snd_cwnd, target_cwnd = 0; in bbr_set_cwnd() local
526 if (bbr_set_cwnd_to_recover_or_restore(sk, rs, acked, &cwnd)) in bbr_set_cwnd()
539 cwnd = min(cwnd + acked, target_cwnd); in bbr_set_cwnd()
540 else if (cwnd < target_cwnd || tp->delivered < TCP_INIT_CWND) in bbr_set_cwnd()
541 cwnd = cwnd + acked; in bbr_set_cwnd()
542 cwnd = max(cwnd, bbr_cwnd_min_target); in bbr_set_cwnd()
545 tp->snd_cwnd = min(cwnd, tp->snd_cwnd_clamp); /* apply global cap */ in bbr_set_cwnd()