Lines Matching refs:snd_cwnd
161 return min(tp->snd_ssthresh, tp->snd_cwnd-1); in tcp_vegas_ssthresh()
219 target_cwnd = (u64)tp->snd_cwnd * vegas->baseRTT; in tcp_vegas_cong_avoid()
226 diff = tp->snd_cwnd * (rtt-vegas->baseRTT) / vegas->baseRTT; in tcp_vegas_cong_avoid()
228 if (diff > gamma && tp->snd_cwnd <= tp->snd_ssthresh) { in tcp_vegas_cong_avoid()
240 tp->snd_cwnd = min(tp->snd_cwnd, (u32)target_cwnd+1); in tcp_vegas_cong_avoid()
243 } else if (tp->snd_cwnd <= tp->snd_ssthresh) { in tcp_vegas_cong_avoid()
256 tp->snd_cwnd--; in tcp_vegas_cong_avoid()
263 tp->snd_cwnd++; in tcp_vegas_cong_avoid()
271 if (tp->snd_cwnd < 2) in tcp_vegas_cong_avoid()
272 tp->snd_cwnd = 2; in tcp_vegas_cong_avoid()
273 else if (tp->snd_cwnd > tp->snd_cwnd_clamp) in tcp_vegas_cong_avoid()
274 tp->snd_cwnd = tp->snd_cwnd_clamp; in tcp_vegas_cong_avoid()
284 else if (tp->snd_cwnd <= tp->snd_ssthresh) in tcp_vegas_cong_avoid()