Home
last modified time | relevance | path

Searched refs:snd_cwnd (Results 1 – 25 of 32) sorted by relevance

12

/Linux-v4.19/net/ipv4/
Dtcp_yeah.c86 if (tp->snd_cwnd_cnt > min(tp->snd_cwnd, TCP_SCALABLE_AI_CNT)) { in tcp_yeah_cong_avoid()
87 if (tp->snd_cwnd < tp->snd_cwnd_clamp) in tcp_yeah_cong_avoid()
88 tp->snd_cwnd++; in tcp_yeah_cong_avoid()
96 tcp_cong_avoid_ai(tp, tp->snd_cwnd, 1); in tcp_yeah_cong_avoid()
151 bw = tp->snd_cwnd; in tcp_yeah_cong_avoid()
159 tp->snd_cwnd > yeah->reno_count) { in tcp_yeah_cong_avoid()
161 tp->snd_cwnd >> TCP_YEAH_EPSILON); in tcp_yeah_cong_avoid()
163 tp->snd_cwnd -= reduction; in tcp_yeah_cong_avoid()
165 tp->snd_cwnd = max(tp->snd_cwnd, in tcp_yeah_cong_avoid()
168 tp->snd_ssthresh = tp->snd_cwnd; in tcp_yeah_cong_avoid()
[all …]
Dtcp_highspeed.c129 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()
Dtcp_veno.c148 target_cwnd = (u64)tp->snd_cwnd * veno->basertt; in tcp_veno_cong_avoid()
152 veno->diff = (tp->snd_cwnd << V_PARAM_SHIFT) - target_cwnd; in tcp_veno_cong_avoid()
163 tcp_cong_avoid_ai(tp, tp->snd_cwnd, 1); in tcp_veno_cong_avoid()
168 if (tp->snd_cwnd_cnt >= tp->snd_cwnd) { in tcp_veno_cong_avoid()
170 tp->snd_cwnd < tp->snd_cwnd_clamp) { in tcp_veno_cong_avoid()
171 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()
183 tp->snd_cwnd = tp->snd_cwnd_clamp; in tcp_veno_cong_avoid()
[all …]
Dtcp_hybla.c56 tp->snd_cwnd = 2; in hybla_init()
64 tp->snd_cwnd = ca->rho; in hybla_init()
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()
Dtcp_vegas.c161 return min(tp->snd_ssthresh, tp->snd_cwnd); 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()
240 tp->snd_cwnd = min(tp->snd_cwnd, (u32)target_cwnd+1); 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()
273 else if (tp->snd_cwnd > tp->snd_cwnd_clamp) in tcp_vegas_cong_avoid()
274 tp->snd_cwnd = tp->snd_cwnd_clamp; in tcp_vegas_cong_avoid()
Dtcp_cdg.c163 tp->snd_cwnd); in tcp_cdg_hystart_update()
164 tp->snd_ssthresh = tp->snd_cwnd; in tcp_cdg_hystart_update()
182 tp->snd_cwnd); in tcp_cdg_hystart_update()
183 tp->snd_ssthresh = tp->snd_cwnd; in tcp_cdg_hystart_update()
254 ca->shadow_wnd = max(ca->shadow_wnd, tp->snd_cwnd); in tcp_cdg_backoff()
287 ca->shadow_wnd = min(ca->shadow_wnd, tp->snd_cwnd); in tcp_cdg_cong_avoid()
291 prior_snd_cwnd = tp->snd_cwnd; in tcp_cdg_cong_avoid()
294 incr = tp->snd_cwnd - prior_snd_cwnd; in tcp_cdg_cong_avoid()
333 return max(2U, (tp->snd_cwnd * min(1024U, backoff_beta)) >> 10); in tcp_cdg_ssthresh()
336 return tp->snd_cwnd; in tcp_cdg_ssthresh()
[all …]
Dtcp_nv.c200 cnt = tp->snd_cwnd << -ca->cwnd_growth_factor; in tcpnv_cong_avoid()
203 cnt = max(4U, tp->snd_cwnd >> ca->cwnd_growth_factor); in tcpnv_cong_avoid()
212 return max((tp->snd_cwnd * nv_loss_dec_factor) >> 10, 2U); in tcpnv_recalc_ssthresh()
260 if (ca->nv_catchup && tp->snd_cwnd >= nv_min_cwnd) { in tcpnv_acked()
374 if (tp->snd_cwnd > max_win) { in tcpnv_acked()
401 if (tp->snd_cwnd - max_win > 2) { in tcpnv_acked()
405 dec = max(2U, ((tp->snd_cwnd - max_win) * in tcpnv_acked()
407 tp->snd_cwnd -= dec; in tcpnv_acked()
409 tp->snd_cwnd = max_win; in tcpnv_acked()
414 } else if (tp->snd_cwnd <= max_win - nv_pad_buffer) { in tcpnv_acked()
[all …]
Dtcp_bic.c150 bictcp_update(ca, tp->snd_cwnd); in bictcp_cong_avoid()
167 if (tp->snd_cwnd < ca->last_max_cwnd && fast_convergence) in bictcp_recalc_ssthresh()
168 ca->last_max_cwnd = (tp->snd_cwnd * (BICTCP_BETA_SCALE + beta)) in bictcp_recalc_ssthresh()
171 ca->last_max_cwnd = tp->snd_cwnd; in bictcp_recalc_ssthresh()
173 if (tp->snd_cwnd <= low_window) in bictcp_recalc_ssthresh()
174 return max(tp->snd_cwnd >> 1U, 2U); in bictcp_recalc_ssthresh()
176 return max((tp->snd_cwnd * beta) / BICTCP_BETA_SCALE, 2U); in bictcp_recalc_ssthresh()
Dtcp_cong.c395 u32 cwnd = min(tp->snd_cwnd + acked, tp->snd_ssthresh); in tcp_slow_start()
397 acked -= cwnd - tp->snd_cwnd; in tcp_slow_start()
398 tp->snd_cwnd = min(cwnd, tp->snd_cwnd_clamp); in tcp_slow_start()
412 tp->snd_cwnd++; in tcp_cong_avoid_ai()
420 tp->snd_cwnd += delta; in tcp_cong_avoid_ai()
422 tp->snd_cwnd = min(tp->snd_cwnd, tp->snd_cwnd_clamp); in tcp_cong_avoid_ai()
447 tcp_cong_avoid_ai(tp, tp->snd_cwnd, acked); in tcp_reno_cong_avoid()
456 return max(tp->snd_cwnd >> 1U, 2U); in tcp_reno_ssthresh()
464 return max(tp->snd_cwnd, tp->prior_cwnd); in tcp_reno_undo_cwnd()
Dtcp_cubic.c349 bictcp_update(ca, tp->snd_cwnd, acked); in bictcp_cong_avoid()
361 if (tp->snd_cwnd < ca->last_max_cwnd && fast_convergence) in bictcp_recalc_ssthresh()
362 ca->last_max_cwnd = (tp->snd_cwnd * (BICTCP_BETA_SCALE + beta)) in bictcp_recalc_ssthresh()
365 ca->last_max_cwnd = tp->snd_cwnd; in bictcp_recalc_ssthresh()
367 return max((tp->snd_cwnd * beta) / BICTCP_BETA_SCALE, 2U); in bictcp_recalc_ssthresh()
398 tp->snd_cwnd); in hystart_update()
399 tp->snd_ssthresh = tp->snd_cwnd; in hystart_update()
419 tp->snd_cwnd); in hystart_update()
420 tp->snd_ssthresh = tp->snd_cwnd; in hystart_update()
453 tp->snd_cwnd >= hystart_low_window) in bictcp_acked()
Dtcp_scalable.c28 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()
Dtcp_illinois.c226 if (tp->snd_cwnd < win_thresh) { in update_params()
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()
Dtcp_bbr.c244 bw = (u64)tp->snd_cwnd * BW_UNIT; in bbr_init_pacing_rate_from_rtt()
296 bbr->prior_cwnd = tp->snd_cwnd; /* this cwnd is good enough */ in bbr_save_cwnd()
298 bbr->prior_cwnd = max(bbr->prior_cwnd, tp->snd_cwnd); in bbr_save_cwnd()
385 u32 cwnd = tp->snd_cwnd; in bbr_set_cwnd_to_recover_or_restore()
423 u32 cwnd = tp->snd_cwnd, target_cwnd = 0; in bbr_set_cwnd()
440 tp->snd_cwnd = min(cwnd, tp->snd_cwnd_clamp); /* apply global cap */ in bbr_set_cwnd()
442 tp->snd_cwnd = min(tp->snd_cwnd, bbr_cwnd_min_target); in bbr_set_cwnd()
758 tp->snd_cwnd = max(tp->snd_cwnd, bbr->prior_cwnd); in bbr_check_probe_rtt_done()
901 return tcp_sk(sk)->snd_cwnd; in bbr_undo_cwnd()
Dtcp_htcp.c126 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()
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()
Dtcp_lp.c292 tp->snd_cwnd, lp->remote_hz, lp->owd_min, lp->owd_max, in tcp_lp_pkts_acked()
308 tp->snd_cwnd = 1U; in tcp_lp_pkts_acked()
313 tp->snd_cwnd = max(tp->snd_cwnd >> 1U, 1U); in tcp_lp_pkts_acked()
Dtcp_dctcp.c117 ca->loss_cwnd = tp->snd_cwnd; in dctcp_ssthresh()
118 return max(tp->snd_cwnd - ((tp->snd_cwnd * ca->dctcp_alpha) >> 11U), 2U); in dctcp_ssthresh()
275 return max(tcp_sk(sk)->snd_cwnd, ca->loss_cwnd); in dctcp_cwnd_undo()
Dtcp_metrics.c390 if (val && (tp->snd_cwnd >> 1) > val) in tcp_update_metrics()
392 tp->snd_cwnd >> 1); in tcp_update_metrics()
396 if (tp->snd_cwnd > val) in tcp_update_metrics()
398 tp->snd_cwnd); in tcp_update_metrics()
405 max(tp->snd_cwnd >> 1, tp->snd_ssthresh)); in tcp_update_metrics()
408 tcp_metric_set(tm, TCP_METRIC_CWND, (val + tp->snd_cwnd) >> 1); in tcp_update_metrics()
521 tp->snd_cwnd = 1; in tcp_init_metrics()
523 tp->snd_cwnd = tcp_init_cwnd(tp, dst); in tcp_init_metrics()
Dtcp_output.c129 u32 cwnd = tp->snd_cwnd; in tcp_cwnd_restart()
138 tp->snd_cwnd = max(cwnd, restart_cwnd); in tcp_cwnd_restart()
796 tp->snd_cwnd > tcp_packets_in_flight(tp)) { in tcp_tsq_write()
1604 if (win_used < tp->snd_cwnd) { in tcp_cwnd_application_limited()
1606 tp->snd_cwnd = (tp->snd_cwnd + win_used) >> 1; in tcp_cwnd_application_limited()
1776 cwnd = tp->snd_cwnd; in tcp_cwnd_test()
1928 BUG_ON(tp->snd_cwnd <= in_flight); in tcp_tso_should_defer()
1933 cong_win = (tp->snd_cwnd - in_flight) * tp->mss_cache; in tcp_tso_should_defer()
1947 u32 chunk = min(tp->snd_wnd, tp->snd_cwnd * tp->mss_cache); in tcp_tso_should_defer()
2057 tp->snd_cwnd < 11 || in tcp_mtu_probe()
[all …]
Dtcp_rate.c190 tcp_packets_in_flight(tp) < tp->snd_cwnd && in tcp_rate_check_app_limited()
Dtcp_westwood.c246 tp->snd_cwnd = tp->snd_ssthresh = tcp_westwood_bw_rttmin(sk); in tcp_westwood_event()
Dtcp_input.c345 nr_segs = max_t(u32, TCP_INIT_CWND, tp->snd_cwnd); in tcp_sndbuf_expand()
822 if (tp->snd_cwnd < tp->snd_ssthresh / 2) in tcp_update_pacing_rate()
827 rate *= max(tp->snd_cwnd, tp->packets_out); in tcp_update_pacing_rate()
1992 tp->prior_cwnd = tp->snd_cwnd; in tcp_enter_loss()
1997 tp->snd_cwnd = tcp_packets_in_flight(tp) + 1; in tcp_enter_loss()
2319 tp->snd_cwnd, tcp_left_out(tp), in DBGUNDO()
2328 tp->snd_cwnd, tcp_left_out(tp), in DBGUNDO()
2353 tp->snd_cwnd = icsk->icsk_ca_ops->undo_cwnd(sk); in tcp_undo_cwnd_reduction()
2460 tp->prior_cwnd = tp->snd_cwnd; in tcp_init_cwnd_reduction()
2491 tp->snd_cwnd = tcp_packets_in_flight(tp) + sndcnt; in tcp_cwnd_reduction()
[all …]
/Linux-v4.19/include/trace/events/
Dtcp.h242 __field(__u32, snd_cwnd)
268 __entry->snd_cwnd = tp->snd_cwnd;
279 __entry->snd_cwnd, __entry->ssthresh, __entry->snd_wnd,
/Linux-v4.19/Documentation/networking/
Dtcp.txt16 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-v4.19/include/linux/
Dtcp.h281 u32 snd_cwnd; /* Sending congestion window */ member
/Linux-v4.19/include/net/
Dtcp.h1152 return tp->snd_cwnd < tp->snd_ssthresh; in tcp_in_slow_start()
1178 ((tp->snd_cwnd >> 1) + in tcp_current_ssthresh()
1179 (tp->snd_cwnd >> 2))); in tcp_current_ssthresh()
1221 return tp->snd_cwnd < 2 * tp->max_packets_out; in tcp_is_cwnd_limited()

12