• Home
  • Raw
  • Download

Lines Matching refs:tp

126 	struct tcp_sock *tp = tcp_sk(sk);  in tcpnv_reset()  local
133 ca->nv_rtt_start_seq = tp->snd_una; in tcpnv_reset()
135 ca->nv_last_snd_una = tp->snd_una; in tcpnv_reset()
183 struct tcp_sock *tp = tcp_sk(sk); in tcpnv_cong_avoid() local
194 if (tcp_in_slow_start(tp)) { in tcpnv_cong_avoid()
195 acked = tcp_slow_start(tp, acked); in tcpnv_cong_avoid()
201 cnt = tcp_snd_cwnd(tp) << -ca->cwnd_growth_factor; in tcpnv_cong_avoid()
202 tcp_cong_avoid_ai(tp, cnt, acked); in tcpnv_cong_avoid()
204 cnt = max(4U, tcp_snd_cwnd(tp) >> ca->cwnd_growth_factor); in tcpnv_cong_avoid()
205 tcp_cong_avoid_ai(tp, cnt, acked); in tcpnv_cong_avoid()
211 const struct tcp_sock *tp = tcp_sk(sk); in tcpnv_recalc_ssthresh() local
213 return max((tcp_snd_cwnd(tp) * nv_loss_dec_factor) >> 10, 2U); in tcpnv_recalc_ssthresh()
243 struct tcp_sock *tp = tcp_sk(sk); in tcpnv_acked() local
261 if (ca->nv_catchup && tcp_snd_cwnd(tp) >= nv_min_cwnd) { in tcpnv_acked()
266 bytes_acked = tp->snd_una - ca->nv_last_snd_una; in tcpnv_acked()
267 ca->nv_last_snd_una = tp->snd_una; in tcpnv_acked()
338 if (before(ca->nv_rtt_start_seq, tp->snd_una)) { in tcpnv_acked()
339 ca->nv_rtt_start_seq = tp->snd_nxt; in tcpnv_acked()
350 bytes_acked >= (ca->nv_min_cwnd - 1) * tp->mss_cache && in tcpnv_acked()
355 ca->nv_rtt_start_seq = tp->snd_nxt + in tcpnv_acked()
356 ca->nv_min_cwnd * tp->mss_cache; in tcpnv_acked()
368 80000ULL * tp->mss_cache); in tcpnv_acked()
375 if (tcp_snd_cwnd(tp) > max_win) { in tcpnv_acked()
385 } else if (tp->snd_ssthresh == TCP_INFINITE_SSTHRESH) { in tcpnv_acked()
400 tp->snd_ssthresh = in tcpnv_acked()
402 if (tcp_snd_cwnd(tp) - max_win > 2) { in tcpnv_acked()
406 dec = max(2U, ((tcp_snd_cwnd(tp) - max_win) * in tcpnv_acked()
408 tcp_snd_cwnd_set(tp, tcp_snd_cwnd(tp) - dec); in tcpnv_acked()
410 tcp_snd_cwnd_set(tp, max_win); in tcpnv_acked()
415 } else if (tcp_snd_cwnd(tp) <= max_win - nv_pad_buffer) { in tcpnv_acked()
448 if (tcp_snd_cwnd(tp) < nv_min_cwnd) in tcpnv_acked()
449 tcp_snd_cwnd_set(tp, nv_min_cwnd); in tcpnv_acked()