Lines Matching refs:snd_cwnd
147 target_cwnd = (u64)tp->snd_cwnd * veno->basertt; in tcp_veno_cong_avoid()
151 veno->diff = (tp->snd_cwnd << V_PARAM_SHIFT) - target_cwnd; in tcp_veno_cong_avoid()
153 if (tp->snd_cwnd <= tp->snd_ssthresh) { in tcp_veno_cong_avoid()
162 tcp_cong_avoid_ai(tp, tp->snd_cwnd); in tcp_veno_cong_avoid()
167 if (tp->snd_cwnd_cnt >= tp->snd_cwnd) { in tcp_veno_cong_avoid()
169 tp->snd_cwnd < tp->snd_cwnd_clamp) { in tcp_veno_cong_avoid()
170 tp->snd_cwnd++; in tcp_veno_cong_avoid()
179 if (tp->snd_cwnd < 2) in tcp_veno_cong_avoid()
180 tp->snd_cwnd = 2; in tcp_veno_cong_avoid()
181 else if (tp->snd_cwnd > tp->snd_cwnd_clamp) in tcp_veno_cong_avoid()
182 tp->snd_cwnd = tp->snd_cwnd_clamp; in tcp_veno_cong_avoid()
197 return max(tp->snd_cwnd * 4 / 5, 2U); in tcp_veno_ssthresh()
200 return max(tp->snd_cwnd >> 1U, 2U); in tcp_veno_ssthresh()