Lines Matching refs:snd_cwnd
163 return min(tp->snd_ssthresh, tp->snd_cwnd-1); in tcp_vegas_ssthresh()
221 target_cwnd = tp->snd_cwnd * vegas->baseRTT / rtt; in tcp_vegas_cong_avoid()
227 diff = tp->snd_cwnd * (rtt-vegas->baseRTT) / vegas->baseRTT; in tcp_vegas_cong_avoid()
229 if (diff > gamma && tp->snd_cwnd <= tp->snd_ssthresh) { in tcp_vegas_cong_avoid()
241 tp->snd_cwnd = min(tp->snd_cwnd, (u32)target_cwnd+1); in tcp_vegas_cong_avoid()
244 } else if (tp->snd_cwnd <= tp->snd_ssthresh) { in tcp_vegas_cong_avoid()
257 tp->snd_cwnd--; in tcp_vegas_cong_avoid()
264 tp->snd_cwnd++; in tcp_vegas_cong_avoid()
272 if (tp->snd_cwnd < 2) in tcp_vegas_cong_avoid()
273 tp->snd_cwnd = 2; in tcp_vegas_cong_avoid()
274 else if (tp->snd_cwnd > tp->snd_cwnd_clamp) in tcp_vegas_cong_avoid()
275 tp->snd_cwnd = tp->snd_cwnd_clamp; in tcp_vegas_cong_avoid()
285 else if (tp->snd_cwnd <= tp->snd_ssthresh) in tcp_vegas_cong_avoid()