Lines Matching refs:snd_cwnd
148 target_cwnd = (u64)tp->snd_cwnd * veno->basertt; in tcp_veno_cong_avoid()
152 veno->diff = (tp->snd_cwnd << V_PARAM_SHIFT) - target_cwnd; in tcp_veno_cong_avoid()
163 tcp_cong_avoid_ai(tp, tp->snd_cwnd, 1); in tcp_veno_cong_avoid()
168 if (tp->snd_cwnd_cnt >= tp->snd_cwnd) { in tcp_veno_cong_avoid()
170 tp->snd_cwnd < tp->snd_cwnd_clamp) { in tcp_veno_cong_avoid()
171 tp->snd_cwnd++; in tcp_veno_cong_avoid()
180 if (tp->snd_cwnd < 2) in tcp_veno_cong_avoid()
181 tp->snd_cwnd = 2; in tcp_veno_cong_avoid()
182 else if (tp->snd_cwnd > tp->snd_cwnd_clamp) in tcp_veno_cong_avoid()
183 tp->snd_cwnd = tp->snd_cwnd_clamp; in tcp_veno_cong_avoid()
198 return max(tp->snd_cwnd * 4 / 5, 2U); in tcp_veno_ssthresh()
201 return max(tp->snd_cwnd >> 1U, 2U); in tcp_veno_ssthresh()