• Home
  • Raw
  • Download

Lines Matching refs:tp

396 u32 tcp_slow_start(struct tcp_sock *tp, u32 acked)  in tcp_slow_start()  argument
398 u32 cwnd = min(tcp_snd_cwnd(tp) + acked, tp->snd_ssthresh); in tcp_slow_start()
400 acked -= cwnd - tcp_snd_cwnd(tp); in tcp_slow_start()
401 tcp_snd_cwnd_set(tp, min(cwnd, tp->snd_cwnd_clamp)); in tcp_slow_start()
410 void tcp_cong_avoid_ai(struct tcp_sock *tp, u32 w, u32 acked) in tcp_cong_avoid_ai() argument
413 if (tp->snd_cwnd_cnt >= w) { in tcp_cong_avoid_ai()
414 tp->snd_cwnd_cnt = 0; in tcp_cong_avoid_ai()
415 tcp_snd_cwnd_set(tp, tcp_snd_cwnd(tp) + 1); in tcp_cong_avoid_ai()
418 tp->snd_cwnd_cnt += acked; in tcp_cong_avoid_ai()
419 if (tp->snd_cwnd_cnt >= w) { in tcp_cong_avoid_ai()
420 u32 delta = tp->snd_cwnd_cnt / w; in tcp_cong_avoid_ai()
422 tp->snd_cwnd_cnt -= delta * w; in tcp_cong_avoid_ai()
423 tcp_snd_cwnd_set(tp, tcp_snd_cwnd(tp) + delta); in tcp_cong_avoid_ai()
425 tcp_snd_cwnd_set(tp, min(tcp_snd_cwnd(tp), tp->snd_cwnd_clamp)); in tcp_cong_avoid_ai()
438 struct tcp_sock *tp = tcp_sk(sk); in tcp_reno_cong_avoid() local
444 if (tcp_in_slow_start(tp)) { in tcp_reno_cong_avoid()
445 acked = tcp_slow_start(tp, acked); in tcp_reno_cong_avoid()
450 tcp_cong_avoid_ai(tp, tcp_snd_cwnd(tp), acked); in tcp_reno_cong_avoid()
457 const struct tcp_sock *tp = tcp_sk(sk); in tcp_reno_ssthresh() local
459 return max(tcp_snd_cwnd(tp) >> 1U, 2U); in tcp_reno_ssthresh()
465 const struct tcp_sock *tp = tcp_sk(sk); in tcp_reno_undo_cwnd() local
467 return max(tcp_snd_cwnd(tp), tp->prior_cwnd); in tcp_reno_undo_cwnd()