/linux-4.1.27/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, 1); 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, 1); 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 | 344 if (tp->snd_cwnd <= tp->snd_ssthresh) { in bictcp_cong_avoid() 351 bictcp_update(ca, tp->snd_cwnd, acked); in bictcp_cong_avoid() 363 if (tp->snd_cwnd < ca->last_max_cwnd && fast_convergence) in bictcp_recalc_ssthresh() 364 ca->last_max_cwnd = (tp->snd_cwnd * (BICTCP_BETA_SCALE + beta)) in bictcp_recalc_ssthresh() 367 ca->last_max_cwnd = tp->snd_cwnd; in bictcp_recalc_ssthresh() 369 ca->loss_cwnd = tp->snd_cwnd; in bictcp_recalc_ssthresh() 371 return max((tp->snd_cwnd * beta) / BICTCP_BETA_SCALE, 2U); in bictcp_recalc_ssthresh() 378 return max(tcp_sk(sk)->snd_cwnd, ca->loss_cwnd); in bictcp_undo_cwnd() 409 tp->snd_cwnd); in hystart_update() 410 tp->snd_ssthresh = tp->snd_cwnd; in hystart_update() [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() 36 return max(tp->snd_cwnd - (tp->snd_cwnd>>TCP_SCALABLE_MD_SCALE), 2U); in tcp_scalable_ssthresh()
|
D | tcp_cong.c | 368 u32 cwnd = tp->snd_cwnd + acked; in tcp_slow_start() 372 acked -= cwnd - tp->snd_cwnd; in tcp_slow_start() 373 tp->snd_cwnd = min(cwnd, tp->snd_cwnd_clamp); in tcp_slow_start() 387 tp->snd_cwnd++; in tcp_cong_avoid_ai() 395 tp->snd_cwnd += delta; in tcp_cong_avoid_ai() 397 tp->snd_cwnd = min(tp->snd_cwnd, tp->snd_cwnd_clamp); in tcp_cong_avoid_ai() 416 if (tp->snd_cwnd <= tp->snd_ssthresh) { in tcp_reno_cong_avoid() 422 tcp_cong_avoid_ai(tp, tp->snd_cwnd, acked); in tcp_reno_cong_avoid() 431 return max(tp->snd_cwnd >> 1U, 2U); in tcp_reno_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_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 | 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 | 454 if (val && (tp->snd_cwnd >> 1) > val) in tcp_update_metrics() 456 tp->snd_cwnd >> 1); in tcp_update_metrics() 460 if (tp->snd_cwnd > val) in tcp_update_metrics() 462 tp->snd_cwnd); in tcp_update_metrics() 464 } else if (tp->snd_cwnd > tp->snd_ssthresh && in tcp_update_metrics() 469 max(tp->snd_cwnd >> 1, tp->snd_ssthresh)); in tcp_update_metrics() 472 tcp_metric_set(tm, TCP_METRIC_CWND, (val + tp->snd_cwnd) >> 1); in tcp_update_metrics() 589 tp->snd_cwnd = 1; in tcp_init_metrics() 591 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 | 146 u32 cwnd = tp->snd_cwnd; in tcp_cwnd_restart() 155 tp->snd_cwnd = max(cwnd, restart_cwnd); in tcp_cwnd_restart() 1466 if (win_used < tp->snd_cwnd) { in tcp_cwnd_application_limited() 1468 tp->snd_cwnd = (tp->snd_cwnd + win_used) >> 1; in tcp_cwnd_application_limited() 1607 cwnd = tp->snd_cwnd; in tcp_cwnd_test() 1791 BUG_ON(tcp_skb_pcount(skb) <= 1 || (tp->snd_cwnd <= in_flight)); in tcp_tso_should_defer() 1796 cong_win = (tp->snd_cwnd - in_flight) * tp->mss_cache; in tcp_tso_should_defer() 1810 u32 chunk = min(tp->snd_wnd, tp->snd_cwnd * tp->mss_cache); in tcp_tso_should_defer() 1900 tp->snd_cwnd < 11 || in tcp_mtu_probe() 1936 if (tcp_packets_in_flight(tp) + 2 > tp->snd_cwnd) { in tcp_mtu_probe() [all …]
|
D | tcp_input.c | 299 nr_segs = max_t(u32, TCP_INIT_CWND, tp->snd_cwnd); in tcp_sndbuf_expand() 761 rate *= max(tp->snd_cwnd, tp->packets_out); in tcp_update_pacing_rate() 1940 tp->snd_cwnd = 1; in tcp_enter_loss() 2301 tp->snd_cwnd = min(tp->snd_cwnd, in tcp_moderate_cwnd() 2357 tp->snd_cwnd, tcp_left_out(tp), in DBGUNDO() 2367 tp->snd_cwnd, tcp_left_out(tp), in DBGUNDO() 2397 tp->snd_cwnd = icsk->icsk_ca_ops->undo_cwnd(sk); in tcp_undo_cwnd_reduction() 2399 tp->snd_cwnd = max(tp->snd_cwnd, tp->snd_ssthresh << 1); in tcp_undo_cwnd_reduction() 2406 tp->snd_cwnd = max(tp->snd_cwnd, tp->snd_ssthresh); in tcp_undo_cwnd_reduction() 2502 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 | 482 newtp->snd_cwnd = TCP_INIT_CWND; in tcp_create_openreq_child()
|
D | tcp.c | 398 tp->snd_cwnd = TCP_INIT_CWND; in tcp_init_sock() 2211 tp->snd_cwnd = 2; in tcp_disconnect() 2660 info->tcpi_snd_cwnd = tp->snd_cwnd; in tcp_get_info()
|
D | tcp_ipv4.c | 2240 tp->snd_cwnd, in get_tcp4_sock()
|
/linux-4.1.27/Documentation/networking/ |
D | tcp.txt | 16 snd_cwnd The size of the congestion window 18 snd_cwnd is less than this. 21 snd_cwnd_clamp This is the maximum size that snd_cwnd can grow to. 25 snd_cwnd down when the link is limited by the
|
/linux-4.1.27/include/linux/ |
D | tcp.h | 234 u32 snd_cwnd; /* Sending congestion window */ member
|
/linux-4.1.27/include/net/ |
D | tcp.h | 987 ((tp->snd_cwnd >> 1) + in tcp_current_ssthresh() 988 (tp->snd_cwnd >> 2))); in tcp_current_ssthresh() 1040 if (tp->snd_cwnd <= tp->snd_ssthresh) in tcp_is_cwnd_limited() 1041 return tp->snd_cwnd < 2 * tp->max_packets_out; in tcp_is_cwnd_limited()
|
/linux-4.1.27/net/ipv6/ |
D | tcp_ipv6.c | 1729 tp->snd_cwnd, in get_tcp6_sock()
|