• Home
  • Raw
  • Download

Lines Matching refs:tp

72 	const struct tcp_sock *tp = tcp_sk(sk);  in vegas_enable()  local
79 vegas->beg_snd_nxt = tp->snd_nxt; in vegas_enable()
159 static inline u32 tcp_vegas_ssthresh(struct tcp_sock *tp) in tcp_vegas_ssthresh() argument
161 return min(tp->snd_ssthresh, tp->snd_cwnd); in tcp_vegas_ssthresh()
166 struct tcp_sock *tp = tcp_sk(sk); in tcp_vegas_cong_avoid() local
180 vegas->beg_snd_nxt = tp->snd_nxt; in tcp_vegas_cong_avoid()
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 && tcp_in_slow_start(tp)) { in tcp_vegas_cong_avoid()
240 tp->snd_cwnd = min(tp->snd_cwnd, (u32)target_cwnd+1); in tcp_vegas_cong_avoid()
241 tp->snd_ssthresh = tcp_vegas_ssthresh(tp); in tcp_vegas_cong_avoid()
243 } else if (tcp_in_slow_start(tp)) { in tcp_vegas_cong_avoid()
245 tcp_slow_start(tp, acked); in tcp_vegas_cong_avoid()
256 tp->snd_cwnd--; in tcp_vegas_cong_avoid()
257 tp->snd_ssthresh in tcp_vegas_cong_avoid()
258 = tcp_vegas_ssthresh(tp); 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()
276 tp->snd_ssthresh = tcp_current_ssthresh(sk); in tcp_vegas_cong_avoid()
284 else if (tcp_in_slow_start(tp)) in tcp_vegas_cong_avoid()
285 tcp_slow_start(tp, acked); in tcp_vegas_cong_avoid()