/net/ipv4/ |
D | tcp_yeah.c | 80 if (tp->snd_cwnd <= tp->snd_ssthresh) in tcp_yeah_cong_avoid() 87 if (tp->snd_cwnd_cnt > min(tp->snd_cwnd, TCP_SCALABLE_AI_CNT)){ in tcp_yeah_cong_avoid() 88 if (tp->snd_cwnd < tp->snd_cwnd_clamp) in tcp_yeah_cong_avoid() 89 tp->snd_cwnd++; in tcp_yeah_cong_avoid() 97 tcp_cong_avoid_ai(tp, tp->snd_cwnd); in tcp_yeah_cong_avoid() 153 bw = tp->snd_cwnd; in tcp_yeah_cong_avoid() 161 tp->snd_cwnd > yeah->reno_count) { in tcp_yeah_cong_avoid() 163 tp->snd_cwnd >> TCP_YEAH_EPSILON); in tcp_yeah_cong_avoid() 165 tp->snd_cwnd -= reduction; in tcp_yeah_cong_avoid() 167 tp->snd_cwnd = max(tp->snd_cwnd, in tcp_yeah_cong_avoid() [all …]
|
D | tcp_highspeed.c | 120 if (tp->snd_cwnd <= tp->snd_ssthresh) in hstcp_cong_avoid() 130 if (tp->snd_cwnd > hstcp_aimd_vals[ca->ai].cwnd) { in hstcp_cong_avoid() 131 while (tp->snd_cwnd > hstcp_aimd_vals[ca->ai].cwnd && in hstcp_cong_avoid() 134 } else if (ca->ai && tp->snd_cwnd <= hstcp_aimd_vals[ca->ai-1].cwnd) { in hstcp_cong_avoid() 135 while (ca->ai && tp->snd_cwnd <= hstcp_aimd_vals[ca->ai-1].cwnd) in hstcp_cong_avoid() 140 if (tp->snd_cwnd < tp->snd_cwnd_clamp) { in hstcp_cong_avoid() 143 if (tp->snd_cwnd_cnt >= tp->snd_cwnd) { in hstcp_cong_avoid() 144 tp->snd_cwnd_cnt -= tp->snd_cwnd; in hstcp_cong_avoid() 145 tp->snd_cwnd++; in hstcp_cong_avoid() 157 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 = (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() 180 if (tp->snd_cwnd < 2) in tcp_veno_cong_avoid() 181 tp->snd_cwnd = 2; in tcp_veno_cong_avoid() 182 else if (tp->snd_cwnd > tp->snd_cwnd_clamp) in tcp_veno_cong_avoid() [all …]
|
D | tcp_vegas.c | 163 return min(tp->snd_ssthresh, tp->snd_cwnd-1); in tcp_vegas_ssthresh() 221 target_cwnd = tp->snd_cwnd * vegas->baseRTT / rtt; in tcp_vegas_cong_avoid() 227 diff = tp->snd_cwnd * (rtt-vegas->baseRTT) / vegas->baseRTT; in tcp_vegas_cong_avoid() 229 if (diff > gamma && tp->snd_cwnd <= tp->snd_ssthresh) { in tcp_vegas_cong_avoid() 241 tp->snd_cwnd = min(tp->snd_cwnd, (u32)target_cwnd+1); in tcp_vegas_cong_avoid() 244 } else if (tp->snd_cwnd <= tp->snd_ssthresh) { in tcp_vegas_cong_avoid() 257 tp->snd_cwnd--; in tcp_vegas_cong_avoid() 264 tp->snd_cwnd++; in tcp_vegas_cong_avoid() 272 if (tp->snd_cwnd < 2) in tcp_vegas_cong_avoid() 273 tp->snd_cwnd = 2; in tcp_vegas_cong_avoid() [all …]
|
D | tcp_cong.c | 289 if (in_flight >= tp->snd_cwnd) in tcp_is_cwnd_limited() 292 left = tp->snd_cwnd - in_flight; in tcp_is_cwnd_limited() 294 left * sysctl_tcp_tso_win_divisor < tp->snd_cwnd && in tcp_is_cwnd_limited() 313 u32 snd_cwnd = tp->snd_cwnd; in tcp_slow_start() local 315 if (unlikely(!snd_cwnd)) { in tcp_slow_start() 317 snd_cwnd = 1U; in tcp_slow_start() 320 if (sysctl_tcp_max_ssthresh > 0 && tp->snd_cwnd > sysctl_tcp_max_ssthresh) in tcp_slow_start() 323 cnt = snd_cwnd; /* exponential increase */ in tcp_slow_start() 326 while (tp->snd_cwnd_cnt >= snd_cwnd) { in tcp_slow_start() 327 tp->snd_cwnd_cnt -= snd_cwnd; in tcp_slow_start() [all …]
|
D | tcp_hybla.c | 55 tp->snd_cwnd = 2; in hybla_init() 63 tp->snd_cwnd = ca->rho; in hybla_init() 114 if (tp->snd_cwnd < tp->snd_ssthresh) { in hybla_cong_avoid() 138 increment = ca->rho2_7ls / tp->snd_cwnd; in hybla_cong_avoid() 144 tp->snd_cwnd += increment >> 7; in hybla_cong_avoid() 149 tp->snd_cwnd++; in hybla_cong_avoid() 154 if (increment == 0 && odd == 0 && tp->snd_cwnd_cnt >= tp->snd_cwnd) { in hybla_cong_avoid() 155 tp->snd_cwnd++; in hybla_cong_avoid() 160 tp->snd_cwnd = min(tp->snd_cwnd, tp->snd_ssthresh); in hybla_cong_avoid() 162 tp->snd_cwnd = min_t(u32, tp->snd_cwnd, tp->snd_cwnd_clamp); in hybla_cong_avoid()
|
D | tcp_bic.c | 151 if (tp->snd_cwnd <= tp->snd_ssthresh) in bictcp_cong_avoid() 154 bictcp_update(ca, tp->snd_cwnd); in bictcp_cong_avoid() 172 if (tp->snd_cwnd < ca->last_max_cwnd && fast_convergence) in bictcp_recalc_ssthresh() 173 ca->last_max_cwnd = (tp->snd_cwnd * (BICTCP_BETA_SCALE + beta)) in bictcp_recalc_ssthresh() 176 ca->last_max_cwnd = tp->snd_cwnd; in bictcp_recalc_ssthresh() 178 ca->loss_cwnd = tp->snd_cwnd; in bictcp_recalc_ssthresh() 181 if (tp->snd_cwnd <= low_window) in bictcp_recalc_ssthresh() 182 return max(tp->snd_cwnd >> 1U, 2U); in bictcp_recalc_ssthresh() 184 return max((tp->snd_cwnd * beta) / BICTCP_BETA_SCALE, 2U); in bictcp_recalc_ssthresh() 191 return max(tp->snd_cwnd, ca->loss_cwnd); in bictcp_undo_cwnd()
|
D | tcp_cubic.c | 313 if (tp->snd_cwnd <= tp->snd_ssthresh) { in bictcp_cong_avoid() 318 bictcp_update(ca, tp->snd_cwnd); in bictcp_cong_avoid() 332 if (tp->snd_cwnd < ca->last_max_cwnd && fast_convergence) in bictcp_recalc_ssthresh() 333 ca->last_max_cwnd = (tp->snd_cwnd * (BICTCP_BETA_SCALE + beta)) in bictcp_recalc_ssthresh() 336 ca->last_max_cwnd = tp->snd_cwnd; in bictcp_recalc_ssthresh() 338 ca->loss_cwnd = tp->snd_cwnd; in bictcp_recalc_ssthresh() 340 return max((tp->snd_cwnd * beta) / BICTCP_BETA_SCALE, 2U); in bictcp_recalc_ssthresh() 347 return max(tcp_sk(sk)->snd_cwnd, ca->loss_cwnd); in bictcp_undo_cwnd() 389 tp->snd_ssthresh = tp->snd_cwnd; in hystart_update() 429 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() 34 return max(tp->snd_cwnd - (tp->snd_cwnd>>TCP_SCALABLE_MD_SCALE), 2U); in tcp_scalable_ssthresh()
|
D | tcp_illinois.c | 226 if (tp->snd_cwnd < win_thresh) { in update_params() 272 if (tp->snd_cwnd <= tp->snd_ssthresh) in tcp_illinois_cong_avoid() 286 if (delta >= tp->snd_cwnd) { in tcp_illinois_cong_avoid() 287 tp->snd_cwnd = min(tp->snd_cwnd + delta / tp->snd_cwnd, in tcp_illinois_cong_avoid() 300 return max(tp->snd_cwnd - ((tp->snd_cwnd * ca->beta) >> BETA_SHIFT), 2U); in tcp_illinois_ssthresh()
|
D | tcp_probe.c | 63 u32 snd_cwnd; member 102 (full || tp->snd_cwnd != tcp_probe.lastcwnd)) { in jtcp_rcv_established() 117 p->snd_cwnd = tp->snd_cwnd; in jtcp_rcv_established() 124 tcp_probe.lastcwnd = tp->snd_cwnd; in jtcp_rcv_established() 166 p->snd_cwnd, p->ssthresh, p->snd_wnd, p->srtt); in tcpprobe_sprint()
|
D | tcp_htcp.c | 79 return max(tp->snd_cwnd, (tp->snd_ssthresh << 7) / ca->beta); in htcp_cwnd_undo() 126 if (ca->packetcount >= tp->snd_cwnd - (ca->alpha >> 7 ? : 1) && in measure_achieved_throughput() 227 return max((tp->snd_cwnd * ca->beta) >> 7, 2U); in htcp_recalc_ssthresh() 238 if (tp->snd_cwnd <= tp->snd_ssthresh) in htcp_cong_avoid() 244 if ((tp->snd_cwnd_cnt * ca->alpha)>>7 >= tp->snd_cwnd) { in htcp_cong_avoid() 245 if (tp->snd_cwnd < tp->snd_cwnd_clamp) in htcp_cong_avoid() 246 tp->snd_cwnd++; in htcp_cong_avoid()
|
D | tcp_lp.c | 289 tp->snd_cwnd, lp->remote_hz, lp->owd_min, lp->owd_max, in tcp_lp_pkts_acked() 305 tp->snd_cwnd = 1U; in tcp_lp_pkts_acked() 310 tp->snd_cwnd = max(tp->snd_cwnd >> 1U, 1U); in tcp_lp_pkts_acked()
|
D | tcp_metrics.c | 391 if (val && (tp->snd_cwnd >> 1) > val) in tcp_update_metrics() 393 tp->snd_cwnd >> 1); in tcp_update_metrics() 397 if (tp->snd_cwnd > val) in tcp_update_metrics() 399 tp->snd_cwnd); in tcp_update_metrics() 401 } else if (tp->snd_cwnd > tp->snd_ssthresh && in tcp_update_metrics() 406 max(tp->snd_cwnd >> 1, tp->snd_ssthresh)); in tcp_update_metrics() 409 tcp_metric_set(tm, TCP_METRIC_CWND, (val + tp->snd_cwnd) >> 1); in tcp_update_metrics() 530 tp->snd_cwnd = 1; in tcp_init_metrics() 532 tp->snd_cwnd = tcp_init_cwnd(tp, dst); in tcp_init_metrics()
|
D | tcp_input.c | 1855 tp->snd_cwnd = 1; in tcp_enter_loss() 2265 tp->snd_cwnd = min(tp->snd_cwnd, in tcp_moderate_cwnd() 2292 tp->snd_cwnd, tcp_left_out(tp), in DBGUNDO() 2302 tp->snd_cwnd, tcp_left_out(tp), in DBGUNDO() 2320 tp->snd_cwnd = icsk->icsk_ca_ops->undo_cwnd(sk); in tcp_undo_cwr() 2322 tp->snd_cwnd = max(tp->snd_cwnd, tp->snd_ssthresh << 1); in tcp_undo_cwr() 2329 tp->snd_cwnd = max(tp->snd_cwnd, tp->snd_ssthresh); in tcp_undo_cwr() 2491 tp->prior_cwnd = tp->snd_cwnd; in tcp_init_cwnd_reduction() 2518 tp->snd_cwnd = tcp_packets_in_flight(tp) + sndcnt; in tcp_cwnd_reduction() 2528 tp->snd_cwnd = tp->snd_ssthresh; in tcp_end_cwnd_reduction() [all …]
|
D | tcp_output.c | 143 u32 cwnd = tp->snd_cwnd; in tcp_cwnd_restart() 152 tp->snd_cwnd = max(cwnd, restart_cwnd); in tcp_cwnd_restart() 1356 if (tp->packets_out >= tp->snd_cwnd) { in tcp_cwnd_validate() 1417 cwnd = tp->snd_cwnd; in tcp_cwnd_test() 1614 BUG_ON(tcp_skb_pcount(skb) <= 1 || (tp->snd_cwnd <= in_flight)); in tcp_tso_should_defer() 1619 cong_win = (tp->snd_cwnd - in_flight) * tp->mss_cache; in tcp_tso_should_defer() 1634 u32 chunk = min(tp->snd_wnd, tp->snd_cwnd * tp->mss_cache); in tcp_tso_should_defer() 1692 tp->snd_cwnd < 11 || in tcp_mtu_probe() 1715 if (tcp_packets_in_flight(tp) + 2 > tp->snd_cwnd) { in tcp_mtu_probe() 1783 tp->snd_cwnd--; in tcp_mtu_probe() [all …]
|
D | tcp_westwood.c | 236 tp->snd_cwnd = tp->snd_ssthresh = tcp_westwood_bw_rttmin(sk); in tcp_westwood_event()
|
D | tcp_minisocks.c | 422 newtp->snd_cwnd = TCP_INIT_CWND; in tcp_create_openreq_child()
|
D | tcp.c | 394 tp->snd_cwnd = TCP_INIT_CWND; in tcp_init_sock() 2298 tp->snd_cwnd = 2; in tcp_disconnect() 2736 info->tcpi_snd_cwnd = tp->snd_cwnd; in tcp_get_info()
|
D | tcp_ipv4.c | 2710 tp->snd_cwnd, in get_tcp4_sock()
|
/net/ipv6/ |
D | tcp_ipv6.c | 1818 tp->snd_cwnd, in get_tcp6_sock()
|