/net/ipv4/ |
D | tcp_yeah.c | 78 if (tp->snd_cwnd <= tp->snd_ssthresh) in tcp_yeah_cong_avoid() 85 if (tp->snd_cwnd_cnt > min(tp->snd_cwnd, TCP_SCALABLE_AI_CNT)) { in tcp_yeah_cong_avoid() 86 if (tp->snd_cwnd < tp->snd_cwnd_clamp) in tcp_yeah_cong_avoid() 87 tp->snd_cwnd++; in tcp_yeah_cong_avoid() 95 tcp_cong_avoid_ai(tp, tp->snd_cwnd); in tcp_yeah_cong_avoid() 150 bw = tp->snd_cwnd; in tcp_yeah_cong_avoid() 158 tp->snd_cwnd > yeah->reno_count) { in tcp_yeah_cong_avoid() 160 tp->snd_cwnd >> TCP_YEAH_EPSILON); in tcp_yeah_cong_avoid() 162 tp->snd_cwnd -= reduction; in tcp_yeah_cong_avoid() 164 tp->snd_cwnd = max(tp->snd_cwnd, in tcp_yeah_cong_avoid() [all …]
|
D | tcp_highspeed.c | 119 if (tp->snd_cwnd <= tp->snd_ssthresh) in hstcp_cong_avoid() 129 if (tp->snd_cwnd > hstcp_aimd_vals[ca->ai].cwnd) { in hstcp_cong_avoid() 130 while (tp->snd_cwnd > hstcp_aimd_vals[ca->ai].cwnd && in hstcp_cong_avoid() 133 } else if (ca->ai && tp->snd_cwnd <= hstcp_aimd_vals[ca->ai-1].cwnd) { in hstcp_cong_avoid() 134 while (ca->ai && tp->snd_cwnd <= hstcp_aimd_vals[ca->ai-1].cwnd) in hstcp_cong_avoid() 139 if (tp->snd_cwnd < tp->snd_cwnd_clamp) { in hstcp_cong_avoid() 142 if (tp->snd_cwnd_cnt >= tp->snd_cwnd) { in hstcp_cong_avoid() 143 tp->snd_cwnd_cnt -= tp->snd_cwnd; in hstcp_cong_avoid() 144 tp->snd_cwnd++; in hstcp_cong_avoid() 156 return max(tp->snd_cwnd - ((tp->snd_cwnd * hstcp_aimd_vals[ca->ai].md) >> 8), 2U); in hstcp_ssthresh()
|
D | tcp_veno.c | 147 target_cwnd = (u64)tp->snd_cwnd * veno->basertt; in tcp_veno_cong_avoid() 151 veno->diff = (tp->snd_cwnd << V_PARAM_SHIFT) - target_cwnd; in tcp_veno_cong_avoid() 153 if (tp->snd_cwnd <= tp->snd_ssthresh) { in tcp_veno_cong_avoid() 162 tcp_cong_avoid_ai(tp, tp->snd_cwnd); in tcp_veno_cong_avoid() 167 if (tp->snd_cwnd_cnt >= tp->snd_cwnd) { in tcp_veno_cong_avoid() 169 tp->snd_cwnd < tp->snd_cwnd_clamp) { in tcp_veno_cong_avoid() 170 tp->snd_cwnd++; in tcp_veno_cong_avoid() 179 if (tp->snd_cwnd < 2) in tcp_veno_cong_avoid() 180 tp->snd_cwnd = 2; in tcp_veno_cong_avoid() 181 else if (tp->snd_cwnd > tp->snd_cwnd_clamp) in tcp_veno_cong_avoid() [all …]
|
D | tcp_vegas.c | 161 return min(tp->snd_ssthresh, tp->snd_cwnd-1); in tcp_vegas_ssthresh() 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 && tp->snd_cwnd <= tp->snd_ssthresh) { in tcp_vegas_cong_avoid() 240 tp->snd_cwnd = min(tp->snd_cwnd, (u32)target_cwnd+1); in tcp_vegas_cong_avoid() 243 } else if (tp->snd_cwnd <= tp->snd_ssthresh) { in tcp_vegas_cong_avoid() 256 tp->snd_cwnd--; 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() [all …]
|
D | tcp_hybla.c | 56 tp->snd_cwnd = 2; in hybla_init() 64 tp->snd_cwnd = ca->rho; in hybla_init() 115 if (tp->snd_cwnd < tp->snd_ssthresh) { in hybla_cong_avoid() 139 increment = ca->rho2_7ls / tp->snd_cwnd; in hybla_cong_avoid() 145 tp->snd_cwnd += increment >> 7; in hybla_cong_avoid() 150 tp->snd_cwnd++; in hybla_cong_avoid() 155 if (increment == 0 && odd == 0 && tp->snd_cwnd_cnt >= tp->snd_cwnd) { in hybla_cong_avoid() 156 tp->snd_cwnd++; in hybla_cong_avoid() 161 tp->snd_cwnd = min(tp->snd_cwnd, tp->snd_ssthresh); in hybla_cong_avoid() 163 tp->snd_cwnd = min_t(u32, tp->snd_cwnd, tp->snd_cwnd_clamp); in hybla_cong_avoid()
|
D | tcp_bic.c | 149 if (tp->snd_cwnd <= tp->snd_ssthresh) in bictcp_cong_avoid() 152 bictcp_update(ca, tp->snd_cwnd); in bictcp_cong_avoid() 169 if (tp->snd_cwnd < ca->last_max_cwnd && fast_convergence) in bictcp_recalc_ssthresh() 170 ca->last_max_cwnd = (tp->snd_cwnd * (BICTCP_BETA_SCALE + beta)) in bictcp_recalc_ssthresh() 173 ca->last_max_cwnd = tp->snd_cwnd; in bictcp_recalc_ssthresh() 175 ca->loss_cwnd = tp->snd_cwnd; in bictcp_recalc_ssthresh() 177 if (tp->snd_cwnd <= low_window) in bictcp_recalc_ssthresh() 178 return max(tp->snd_cwnd >> 1U, 2U); in bictcp_recalc_ssthresh() 180 return max((tp->snd_cwnd * beta) / BICTCP_BETA_SCALE, 2U); in bictcp_recalc_ssthresh() 188 return max(tp->snd_cwnd, ca->loss_cwnd); in bictcp_undo_cwnd()
|
D | tcp_cubic.c | 338 if (tp->snd_cwnd <= tp->snd_ssthresh) { in bictcp_cong_avoid() 343 bictcp_update(ca, tp->snd_cwnd); in bictcp_cong_avoid() 356 if (tp->snd_cwnd < ca->last_max_cwnd && fast_convergence) in bictcp_recalc_ssthresh() 357 ca->last_max_cwnd = (tp->snd_cwnd * (BICTCP_BETA_SCALE + beta)) in bictcp_recalc_ssthresh() 360 ca->last_max_cwnd = tp->snd_cwnd; in bictcp_recalc_ssthresh() 362 ca->loss_cwnd = tp->snd_cwnd; in bictcp_recalc_ssthresh() 364 return max((tp->snd_cwnd * beta) / BICTCP_BETA_SCALE, 2U); in bictcp_recalc_ssthresh() 371 return max(tcp_sk(sk)->snd_cwnd, ca->loss_cwnd); in bictcp_undo_cwnd() 413 tp->snd_ssthresh = tp->snd_cwnd; in hystart_update() 453 if (hystart && tp->snd_cwnd <= tp->snd_ssthresh && in bictcp_acked() [all …]
|
D | tcp_scalable.c | 25 if (tp->snd_cwnd <= tp->snd_ssthresh) in tcp_scalable_cong_avoid() 28 tcp_cong_avoid_ai(tp, min(tp->snd_cwnd, TCP_SCALABLE_AI_CNT)); in tcp_scalable_cong_avoid() 35 return max(tp->snd_cwnd - (tp->snd_cwnd>>TCP_SCALABLE_MD_SCALE), 2U); in tcp_scalable_ssthresh()
|
D | tcp_illinois.c | 225 if (tp->snd_cwnd < win_thresh) { in update_params() 271 if (tp->snd_cwnd <= tp->snd_ssthresh) in tcp_illinois_cong_avoid() 285 if (delta >= tp->snd_cwnd) { in tcp_illinois_cong_avoid() 286 tp->snd_cwnd = min(tp->snd_cwnd + delta / tp->snd_cwnd, in tcp_illinois_cong_avoid() 299 return max(tp->snd_cwnd - ((tp->snd_cwnd * ca->beta) >> BETA_SHIFT), 2U); in tcp_illinois_ssthresh()
|
D | tcp_cong.c | 299 u32 cwnd = tp->snd_cwnd + acked; in tcp_slow_start() 303 tp->snd_cwnd = min(cwnd, tp->snd_cwnd_clamp); in tcp_slow_start() 311 if (tp->snd_cwnd < tp->snd_cwnd_clamp) in tcp_cong_avoid_ai() 312 tp->snd_cwnd++; in tcp_cong_avoid_ai() 335 if (tp->snd_cwnd <= tp->snd_ssthresh) in tcp_reno_cong_avoid() 339 tcp_cong_avoid_ai(tp, tp->snd_cwnd); in tcp_reno_cong_avoid() 348 return max(tp->snd_cwnd >> 1U, 2U); in tcp_reno_ssthresh()
|
D | tcp_htcp.c | 79 return max(tp->snd_cwnd, (tp->snd_ssthresh << 7) / ca->beta); in htcp_cwnd_undo() 127 if (ca->packetcount >= tp->snd_cwnd - (ca->alpha >> 7 ? : 1) && in measure_achieved_throughput() 228 return max((tp->snd_cwnd * ca->beta) >> 7, 2U); in htcp_recalc_ssthresh() 239 if (tp->snd_cwnd <= tp->snd_ssthresh) in htcp_cong_avoid() 245 if ((tp->snd_cwnd_cnt * ca->alpha)>>7 >= tp->snd_cwnd) { in htcp_cong_avoid() 246 if (tp->snd_cwnd < tp->snd_cwnd_clamp) in htcp_cong_avoid() 247 tp->snd_cwnd++; in htcp_cong_avoid()
|
D | tcp_probe.c | 71 u32 snd_cwnd; member 118 (full || tp->snd_cwnd != tcp_probe.lastcwnd)) { in jtcp_rcv_established() 151 p->snd_cwnd = tp->snd_cwnd; in jtcp_rcv_established() 159 tcp_probe.lastcwnd = tp->snd_cwnd; in jtcp_rcv_established() 198 p->snd_cwnd, p->ssthresh, p->snd_wnd, p->srtt, p->rcv_wnd); in tcpprobe_sprint()
|
D | tcp_lp.c | 291 tp->snd_cwnd, lp->remote_hz, lp->owd_min, lp->owd_max, in tcp_lp_pkts_acked() 307 tp->snd_cwnd = 1U; in tcp_lp_pkts_acked() 312 tp->snd_cwnd = max(tp->snd_cwnd >> 1U, 1U); in tcp_lp_pkts_acked()
|
D | tcp_metrics.c | 438 if (val && (tp->snd_cwnd >> 1) > val) in tcp_update_metrics() 440 tp->snd_cwnd >> 1); in tcp_update_metrics() 444 if (tp->snd_cwnd > val) in tcp_update_metrics() 446 tp->snd_cwnd); in tcp_update_metrics() 448 } else if (tp->snd_cwnd > tp->snd_ssthresh && in tcp_update_metrics() 453 max(tp->snd_cwnd >> 1, tp->snd_ssthresh)); in tcp_update_metrics() 456 tcp_metric_set(tm, TCP_METRIC_CWND, (val + tp->snd_cwnd) >> 1); in tcp_update_metrics() 573 tp->snd_cwnd = 1; in tcp_init_metrics() 575 tp->snd_cwnd = tcp_init_cwnd(tp, dst); in tcp_init_metrics()
|
D | tcp_dctcp.c | 117 return max(tp->snd_cwnd - ((tp->snd_cwnd * ca->dctcp_alpha) >> 11U), 2U); in dctcp_ssthresh()
|
D | tcp_output.c | 149 u32 cwnd = tp->snd_cwnd; in tcp_cwnd_restart() 158 tp->snd_cwnd = max(cwnd, restart_cwnd); in tcp_cwnd_restart() 1449 if (win_used < tp->snd_cwnd) { in tcp_cwnd_application_limited() 1451 tp->snd_cwnd = (tp->snd_cwnd + win_used) >> 1; in tcp_cwnd_application_limited() 1569 cwnd = tp->snd_cwnd; in tcp_cwnd_test() 1746 BUG_ON(tcp_skb_pcount(skb) <= 1 || (tp->snd_cwnd <= in_flight)); in tcp_tso_should_defer() 1751 cong_win = (tp->snd_cwnd - in_flight) * tp->mss_cache; in tcp_tso_should_defer() 1766 u32 chunk = min(tp->snd_wnd, tp->snd_cwnd * tp->mss_cache); in tcp_tso_should_defer() 1827 tp->snd_cwnd < 11 || in tcp_mtu_probe() 1850 if (tcp_packets_in_flight(tp) + 2 > tp->snd_cwnd) { in tcp_mtu_probe() [all …]
|
D | tcp_input.c | 298 nr_segs = max_t(u32, TCP_INIT_CWND, tp->snd_cwnd); in tcp_sndbuf_expand() 760 rate *= max(tp->snd_cwnd, tp->packets_out); in tcp_update_pacing_rate() 1942 tp->snd_cwnd = 1; in tcp_enter_loss() 2303 tp->snd_cwnd = min(tp->snd_cwnd, in tcp_moderate_cwnd() 2359 tp->snd_cwnd, tcp_left_out(tp), in DBGUNDO() 2368 tp->snd_cwnd, tcp_left_out(tp), in DBGUNDO() 2398 tp->snd_cwnd = icsk->icsk_ca_ops->undo_cwnd(sk); in tcp_undo_cwnd_reduction() 2400 tp->snd_cwnd = max(tp->snd_cwnd, tp->snd_ssthresh << 1); in tcp_undo_cwnd_reduction() 2407 tp->snd_cwnd = max(tp->snd_cwnd, tp->snd_ssthresh); in tcp_undo_cwnd_reduction() 2503 tp->prior_cwnd = tp->snd_cwnd; in tcp_init_cwnd_reduction() [all …]
|
D | tcp_westwood.c | 245 tp->snd_cwnd = tp->snd_ssthresh = tcp_westwood_bw_rttmin(sk); in tcp_westwood_event()
|
D | tcp_minisocks.c | 452 newtp->snd_cwnd = TCP_INIT_CWND; in tcp_create_openreq_child()
|
D | tcp.c | 397 tp->snd_cwnd = TCP_INIT_CWND; in tcp_init_sock() 2276 tp->snd_cwnd = 2; in tcp_disconnect() 2729 info->tcpi_snd_cwnd = tp->snd_cwnd; in tcp_get_info()
|
D | tcp_ipv4.c | 2288 tp->snd_cwnd, in get_tcp4_sock()
|
/net/ipv6/ |
D | tcp_ipv6.c | 1804 tp->snd_cwnd, in get_tcp6_sock()
|