• Home
  • Raw
  • Download

Lines Matching refs:tp

73 	const struct tcp_sock *tp = tcp_sk(sk);  in vegas_enable()  local
80 vegas->beg_snd_nxt = tp->snd_nxt; in vegas_enable()
160 static inline u32 tcp_vegas_ssthresh(struct tcp_sock *tp) in tcp_vegas_ssthresh() argument
162 return min(tp->snd_ssthresh, tcp_snd_cwnd(tp)); in tcp_vegas_ssthresh()
167 struct tcp_sock *tp = tcp_sk(sk); in tcp_vegas_cong_avoid() local
181 vegas->beg_snd_nxt = tp->snd_nxt; in tcp_vegas_cong_avoid()
220 target_cwnd = (u64)tcp_snd_cwnd(tp) * vegas->baseRTT; in tcp_vegas_cong_avoid()
227 diff = tcp_snd_cwnd(tp) * (rtt-vegas->baseRTT) / vegas->baseRTT; in tcp_vegas_cong_avoid()
229 if (diff > gamma && tcp_in_slow_start(tp)) { in tcp_vegas_cong_avoid()
241 tcp_snd_cwnd_set(tp, min(tcp_snd_cwnd(tp), in tcp_vegas_cong_avoid()
243 tp->snd_ssthresh = tcp_vegas_ssthresh(tp); in tcp_vegas_cong_avoid()
245 } else if (tcp_in_slow_start(tp)) { in tcp_vegas_cong_avoid()
247 tcp_slow_start(tp, acked); in tcp_vegas_cong_avoid()
258 tcp_snd_cwnd_set(tp, tcp_snd_cwnd(tp) - 1); in tcp_vegas_cong_avoid()
259 tp->snd_ssthresh in tcp_vegas_cong_avoid()
260 = tcp_vegas_ssthresh(tp); in tcp_vegas_cong_avoid()
265 tcp_snd_cwnd_set(tp, tcp_snd_cwnd(tp) + 1); in tcp_vegas_cong_avoid()
273 if (tcp_snd_cwnd(tp) < 2) in tcp_vegas_cong_avoid()
274 tcp_snd_cwnd_set(tp, 2); in tcp_vegas_cong_avoid()
275 else if (tcp_snd_cwnd(tp) > tp->snd_cwnd_clamp) in tcp_vegas_cong_avoid()
276 tcp_snd_cwnd_set(tp, tp->snd_cwnd_clamp); in tcp_vegas_cong_avoid()
278 tp->snd_ssthresh = tcp_current_ssthresh(sk); in tcp_vegas_cong_avoid()
286 else if (tcp_in_slow_start(tp)) in tcp_vegas_cong_avoid()
287 tcp_slow_start(tp, acked); in tcp_vegas_cong_avoid()