Lines Matching refs:cwnd
395 static u32 bbr_quantization_budget(struct sock *sk, u32 cwnd) in bbr_quantization_budget() argument
400 cwnd += 3 * bbr_tso_segs_goal(sk); in bbr_quantization_budget()
403 cwnd = (cwnd + 1) & ~1U; in bbr_quantization_budget()
407 cwnd += 2; in bbr_quantization_budget()
409 return cwnd; in bbr_quantization_budget()
486 u32 cwnd = tcp_snd_cwnd(tp); in bbr_set_cwnd_to_recover_or_restore() local
493 cwnd = max_t(s32, cwnd - rs->losses, 1); in bbr_set_cwnd_to_recover_or_restore()
500 cwnd = tcp_packets_in_flight(tp) + acked; in bbr_set_cwnd_to_recover_or_restore()
503 cwnd = max(cwnd, bbr->prior_cwnd); in bbr_set_cwnd_to_recover_or_restore()
509 *new_cwnd = max(cwnd, tcp_packets_in_flight(tp) + acked); in bbr_set_cwnd_to_recover_or_restore()
512 *new_cwnd = cwnd; in bbr_set_cwnd_to_recover_or_restore()
524 u32 cwnd = tcp_snd_cwnd(tp), target_cwnd = 0; in bbr_set_cwnd() local
529 if (bbr_set_cwnd_to_recover_or_restore(sk, rs, acked, &cwnd)) in bbr_set_cwnd()
542 cwnd = min(cwnd + acked, target_cwnd); in bbr_set_cwnd()
543 else if (cwnd < target_cwnd || tp->delivered < TCP_INIT_CWND) in bbr_set_cwnd()
544 cwnd = cwnd + acked; in bbr_set_cwnd()
545 cwnd = max(cwnd, bbr_cwnd_min_target); in bbr_set_cwnd()
548 tcp_snd_cwnd_set(tp, min(cwnd, tp->snd_cwnd_clamp)); /* apply global cap */ in bbr_set_cwnd()