Lines Matching refs:snd_cwnd
149 target_cwnd = (u64)tp->snd_cwnd * veno->basertt; in tcp_veno_cong_avoid()
153 veno->diff = (tp->snd_cwnd << V_PARAM_SHIFT) - target_cwnd; in tcp_veno_cong_avoid()
167 tcp_cong_avoid_ai(tp, tp->snd_cwnd, acked); in tcp_veno_cong_avoid()
172 if (tp->snd_cwnd_cnt >= tp->snd_cwnd) { in tcp_veno_cong_avoid()
174 tp->snd_cwnd < tp->snd_cwnd_clamp) { in tcp_veno_cong_avoid()
175 tp->snd_cwnd++; in tcp_veno_cong_avoid()
184 if (tp->snd_cwnd < 2) in tcp_veno_cong_avoid()
185 tp->snd_cwnd = 2; in tcp_veno_cong_avoid()
186 else if (tp->snd_cwnd > tp->snd_cwnd_clamp) in tcp_veno_cong_avoid()
187 tp->snd_cwnd = tp->snd_cwnd_clamp; in tcp_veno_cong_avoid()
202 return max(tp->snd_cwnd * 4 / 5, 2U); in tcp_veno_ssthresh()
205 return max(tp->snd_cwnd >> 1U, 2U); in tcp_veno_ssthresh()