• Home
  • Raw
  • Download

Lines Matching refs:tp

143 	struct tcp_sock *tp = tcp_sk(sk);  in tcp_cdg_hystart_update()  local
150 u32 now_us = tp->tcp_mstamp; in tcp_cdg_hystart_update()
164 tcp_snd_cwnd(tp)); in tcp_cdg_hystart_update()
165 tp->snd_ssthresh = tcp_snd_cwnd(tp); in tcp_cdg_hystart_update()
183 tcp_snd_cwnd(tp)); in tcp_cdg_hystart_update()
184 tp->snd_ssthresh = tcp_snd_cwnd(tp); in tcp_cdg_hystart_update()
244 struct tcp_sock *tp = tcp_sk(sk); in tcp_cdg_backoff() local
255 ca->shadow_wnd = max(ca->shadow_wnd, tcp_snd_cwnd(tp)); in tcp_cdg_backoff()
265 struct tcp_sock *tp = tcp_sk(sk); in tcp_cdg_cong_avoid() local
269 if (tcp_in_slow_start(tp) && hystart_detect) in tcp_cdg_cong_avoid()
277 ca->rtt_seq = tp->snd_nxt; in tcp_cdg_cong_avoid()
288 ca->shadow_wnd = min(ca->shadow_wnd, tcp_snd_cwnd(tp)); in tcp_cdg_cong_avoid()
292 prior_snd_cwnd = tcp_snd_cwnd(tp); in tcp_cdg_cong_avoid()
295 incr = tcp_snd_cwnd(tp) - prior_snd_cwnd; in tcp_cdg_cong_avoid()
302 struct tcp_sock *tp = tcp_sk(sk); in tcp_cdg_acked() local
311 if (tp->sacked_out == 0) { in tcp_cdg_acked()
331 struct tcp_sock *tp = tcp_sk(sk); in tcp_cdg_ssthresh() local
334 return max(2U, (tcp_snd_cwnd(tp) * min(1024U, backoff_beta)) >> 10); in tcp_cdg_ssthresh()
337 return tcp_snd_cwnd(tp); in tcp_cdg_ssthresh()
339 ca->shadow_wnd = min(ca->shadow_wnd >> 1, tcp_snd_cwnd(tp)); in tcp_cdg_ssthresh()
341 return max3(2U, ca->shadow_wnd, tcp_snd_cwnd(tp) >> 1); in tcp_cdg_ssthresh()
342 return max(2U, tcp_snd_cwnd(tp) >> 1); in tcp_cdg_ssthresh()
348 struct tcp_sock *tp = tcp_sk(sk); in tcp_cdg_cwnd_event() local
359 ca->rtt_seq = tp->snd_nxt; in tcp_cdg_cwnd_event()
360 ca->shadow_wnd = tcp_snd_cwnd(tp); in tcp_cdg_cwnd_event()
364 ca->rtt_seq = tp->snd_nxt; in tcp_cdg_cwnd_event()
376 struct tcp_sock *tp = tcp_sk(sk); in tcp_cdg_init() local
383 ca->rtt_seq = tp->snd_nxt; in tcp_cdg_init()
384 ca->shadow_wnd = tcp_snd_cwnd(tp); in tcp_cdg_init()