Lines Matching refs:cwnd
394 static u32 bbr_quantization_budget(struct sock *sk, u32 cwnd) in bbr_quantization_budget() argument
399 cwnd += 3 * bbr_tso_segs_goal(sk); in bbr_quantization_budget()
402 cwnd = (cwnd + 1) & ~1U; in bbr_quantization_budget()
406 cwnd += 2; in bbr_quantization_budget()
408 return cwnd; in bbr_quantization_budget()
485 u32 cwnd = tcp_snd_cwnd(tp); in bbr_set_cwnd_to_recover_or_restore() local
492 cwnd = max_t(s32, cwnd - rs->losses, 1); in bbr_set_cwnd_to_recover_or_restore()
499 cwnd = tcp_packets_in_flight(tp) + acked; in bbr_set_cwnd_to_recover_or_restore()
502 cwnd = max(cwnd, bbr->prior_cwnd); in bbr_set_cwnd_to_recover_or_restore()
508 *new_cwnd = max(cwnd, tcp_packets_in_flight(tp) + acked); in bbr_set_cwnd_to_recover_or_restore()
511 *new_cwnd = cwnd; in bbr_set_cwnd_to_recover_or_restore()
523 u32 cwnd = tcp_snd_cwnd(tp), target_cwnd = 0; in bbr_set_cwnd() local
528 if (bbr_set_cwnd_to_recover_or_restore(sk, rs, acked, &cwnd)) in bbr_set_cwnd()
541 cwnd = min(cwnd + acked, target_cwnd); in bbr_set_cwnd()
542 else if (cwnd < target_cwnd || tp->delivered < TCP_INIT_CWND) in bbr_set_cwnd()
543 cwnd = cwnd + acked; in bbr_set_cwnd()
544 cwnd = max(cwnd, bbr_cwnd_min_target); in bbr_set_cwnd()
547 tcp_snd_cwnd_set(tp, min(cwnd, tp->snd_cwnd_clamp)); /* apply global cap */ in bbr_set_cwnd()