Symbol: tcp_snd_cwnd
include/net/tcp.h
1531
return tcp_snd_cwnd(tp) < tp->snd_ssthresh;
include/net/tcp.h
1557
((tcp_snd_cwnd(tp) >> 1) +
include/net/tcp.h
1558
(tcp_snd_cwnd(tp) >> 2)));
include/net/tcp.h
1603
return tcp_snd_cwnd(tp) < 2 * tp->max_packets_out;
include/net/tcp.h
2679
tcp_snd_cwnd(tcp_sk(sk)),
include/trace/events/tcp.h
413
__entry->snd_cwnd = tcp_snd_cwnd(tp);
net/ipv4/tcp.c
1108
tcp_packets_in_flight(tp) < tcp_snd_cwnd(tp) &&
net/ipv4/tcp.c
4238
info->tcpi_snd_cwnd = tcp_snd_cwnd(tp);
net/ipv4/tcp_bbr.c
1098
return tcp_snd_cwnd(tcp_sk(sk));
net/ipv4/tcp_bbr.c
280
bw = (u64)tcp_snd_cwnd(tp) * BW_UNIT;
net/ipv4/tcp_bbr.c
328
bbr->prior_cwnd = tcp_snd_cwnd(tp); /* this cwnd is good enough */
net/ipv4/tcp_bbr.c
330
bbr->prior_cwnd = max(bbr->prior_cwnd, tcp_snd_cwnd(tp));
net/ipv4/tcp_bbr.c
487
u32 cwnd = tcp_snd_cwnd(tp);
net/ipv4/tcp_bbr.c
525
u32 cwnd = tcp_snd_cwnd(tp), target_cwnd = 0;
net/ipv4/tcp_bbr.c
551
tcp_snd_cwnd_set(tp, min(tcp_snd_cwnd(tp), bbr_cwnd_min_target));
net/ipv4/tcp_bbr.c
861
extra_acked = min(extra_acked, tcp_snd_cwnd(tp));
net/ipv4/tcp_bbr.c
919
tcp_snd_cwnd_set(tp, max(tcp_snd_cwnd(tp), bbr->prior_cwnd));
net/ipv4/tcp_bic.c
153
bictcp_update(ca, tcp_snd_cwnd(tp));
net/ipv4/tcp_bic.c
169
if (tcp_snd_cwnd(tp) < ca->last_max_cwnd && fast_convergence)
net/ipv4/tcp_bic.c
170
ca->last_max_cwnd = (tcp_snd_cwnd(tp) * (BICTCP_BETA_SCALE + beta))
net/ipv4/tcp_bic.c
173
ca->last_max_cwnd = tcp_snd_cwnd(tp);
net/ipv4/tcp_bic.c
175
if (tcp_snd_cwnd(tp) <= low_window)
net/ipv4/tcp_bic.c
176
return max(tcp_snd_cwnd(tp) >> 1U, 2U);
net/ipv4/tcp_bic.c
178
return max((tcp_snd_cwnd(tp) * beta) / BICTCP_BETA_SCALE, 2U);
net/ipv4/tcp_cdg.c
164
tcp_snd_cwnd(tp));
net/ipv4/tcp_cdg.c
165
WRITE_ONCE(tp->snd_ssthresh, tcp_snd_cwnd(tp));
net/ipv4/tcp_cdg.c
183
tcp_snd_cwnd(tp));
net/ipv4/tcp_cdg.c
184
WRITE_ONCE(tp->snd_ssthresh, tcp_snd_cwnd(tp));
net/ipv4/tcp_cdg.c
255
ca->shadow_wnd = max(ca->shadow_wnd, tcp_snd_cwnd(tp));
net/ipv4/tcp_cdg.c
288
ca->shadow_wnd = min(ca->shadow_wnd, tcp_snd_cwnd(tp));
net/ipv4/tcp_cdg.c
292
prior_snd_cwnd = tcp_snd_cwnd(tp);
net/ipv4/tcp_cdg.c
295
incr = tcp_snd_cwnd(tp) - prior_snd_cwnd;
net/ipv4/tcp_cdg.c
334
return max(2U, (tcp_snd_cwnd(tp) * min(1024U, backoff_beta)) >> 10);
net/ipv4/tcp_cdg.c
337
return tcp_snd_cwnd(tp);
net/ipv4/tcp_cdg.c
339
ca->shadow_wnd = min(ca->shadow_wnd >> 1, tcp_snd_cwnd(tp));
net/ipv4/tcp_cdg.c
341
return max3(2U, ca->shadow_wnd, tcp_snd_cwnd(tp) >> 1);
net/ipv4/tcp_cdg.c
342
return max(2U, tcp_snd_cwnd(tp) >> 1);
net/ipv4/tcp_cdg.c
360
ca->shadow_wnd = tcp_snd_cwnd(tp);
net/ipv4/tcp_cdg.c
384
ca->shadow_wnd = tcp_snd_cwnd(tp);
net/ipv4/tcp_cong.c
458
u32 cwnd = min(tcp_snd_cwnd(tp) + acked, tp->snd_ssthresh);
net/ipv4/tcp_cong.c
460
acked -= cwnd - tcp_snd_cwnd(tp);
net/ipv4/tcp_cong.c
475
tcp_snd_cwnd_set(tp, tcp_snd_cwnd(tp) + 1);
net/ipv4/tcp_cong.c
483
tcp_snd_cwnd_set(tp, tcp_snd_cwnd(tp) + delta);
net/ipv4/tcp_cong.c
485
tcp_snd_cwnd_set(tp, min(tcp_snd_cwnd(tp), tp->snd_cwnd_clamp));
net/ipv4/tcp_cong.c
510
tcp_cong_avoid_ai(tp, tcp_snd_cwnd(tp), acked);
net/ipv4/tcp_cong.c
519
return max(tcp_snd_cwnd(tp) >> 1U, 2U);
net/ipv4/tcp_cong.c
527
return max(tcp_snd_cwnd(tp), tp->prior_cwnd);
net/ipv4/tcp_cubic.c
334
bictcp_update(ca, tcp_snd_cwnd(tp), acked);
net/ipv4/tcp_cubic.c
346
if (tcp_snd_cwnd(tp) < ca->last_max_cwnd && fast_convergence)
net/ipv4/tcp_cubic.c
347
ca->last_max_cwnd = (tcp_snd_cwnd(tp) * (BICTCP_BETA_SCALE + beta))
net/ipv4/tcp_cubic.c
350
ca->last_max_cwnd = tcp_snd_cwnd(tp);
net/ipv4/tcp_cubic.c
352
return max((tcp_snd_cwnd(tp) * beta) / BICTCP_BETA_SCALE, 2U);
net/ipv4/tcp_cubic.c
393
if (tcp_snd_cwnd(tp) < hystart_low_window)
net/ipv4/tcp_cubic.c
417
ca->delay_min, hystart_ack_delay(sk), tcp_snd_cwnd(tp));
net/ipv4/tcp_cubic.c
422
tcp_snd_cwnd(tp));
net/ipv4/tcp_cubic.c
423
WRITE_ONCE(tp->snd_ssthresh, tcp_snd_cwnd(tp));
net/ipv4/tcp_cubic.c
442
tcp_snd_cwnd(tp));
net/ipv4/tcp_cubic.c
443
WRITE_ONCE(tp->snd_ssthresh, tcp_snd_cwnd(tp));
net/ipv4/tcp_dctcp.c
123
ca->loss_cwnd = tcp_snd_cwnd(tp);
net/ipv4/tcp_dctcp.c
124
return max(tcp_snd_cwnd(tp) - ((tcp_snd_cwnd(tp) * ca->dctcp_alpha) >> 11U), 2U);
net/ipv4/tcp_dctcp.c
179
ca->loss_cwnd = tcp_snd_cwnd(tp);
net/ipv4/tcp_dctcp.c
180
WRITE_ONCE(tp->snd_ssthresh, max(tcp_snd_cwnd(tp) >> 1U, 2U));
net/ipv4/tcp_dctcp.c
252
return max(tcp_snd_cwnd(tp), ca->loss_cwnd);
net/ipv4/tcp_highspeed.c
130
if (tcp_snd_cwnd(tp) > hstcp_aimd_vals[ca->ai].cwnd) {
net/ipv4/tcp_highspeed.c
131
while (tcp_snd_cwnd(tp) > hstcp_aimd_vals[ca->ai].cwnd &&
net/ipv4/tcp_highspeed.c
134
} else if (ca->ai && tcp_snd_cwnd(tp) <= hstcp_aimd_vals[ca->ai-1].cwnd) {
net/ipv4/tcp_highspeed.c
135
while (ca->ai && tcp_snd_cwnd(tp) <= hstcp_aimd_vals[ca->ai-1].cwnd)
net/ipv4/tcp_highspeed.c
140
if (tcp_snd_cwnd(tp) < tp->snd_cwnd_clamp) {
net/ipv4/tcp_highspeed.c
143
if (tp->snd_cwnd_cnt >= tcp_snd_cwnd(tp)) {
net/ipv4/tcp_highspeed.c
144
tp->snd_cwnd_cnt -= tcp_snd_cwnd(tp);
net/ipv4/tcp_highspeed.c
145
tcp_snd_cwnd_set(tp, tcp_snd_cwnd(tp) + 1);
net/ipv4/tcp_highspeed.c
157
return max(tcp_snd_cwnd(tp) - ((tcp_snd_cwnd(tp) * hstcp_aimd_vals[ca->ai].md) >> 8), 2U);
net/ipv4/tcp_htcp.c
127
if (ca->packetcount >= tcp_snd_cwnd(tp) - (ca->alpha >> 7 ? : 1) &&
net/ipv4/tcp_htcp.c
228
return max((tcp_snd_cwnd(tp) * ca->beta) >> 7, 2U);
net/ipv4/tcp_htcp.c
245
if ((tp->snd_cwnd_cnt * ca->alpha)>>7 >= tcp_snd_cwnd(tp)) {
net/ipv4/tcp_htcp.c
246
if (tcp_snd_cwnd(tp) < tp->snd_cwnd_clamp)
net/ipv4/tcp_htcp.c
247
tcp_snd_cwnd_set(tp, tcp_snd_cwnd(tp) + 1);
net/ipv4/tcp_hybla.c
140
increment = ca->rho2_7ls / tcp_snd_cwnd(tp);
net/ipv4/tcp_hybla.c
146
tcp_snd_cwnd_set(tp, tcp_snd_cwnd(tp) + (increment >> 7));
net/ipv4/tcp_hybla.c
151
tcp_snd_cwnd_set(tp, tcp_snd_cwnd(tp) + 1);
net/ipv4/tcp_hybla.c
156
if (increment == 0 && odd == 0 && tp->snd_cwnd_cnt >= tcp_snd_cwnd(tp)) {
net/ipv4/tcp_hybla.c
157
tcp_snd_cwnd_set(tp, tcp_snd_cwnd(tp) + 1);
net/ipv4/tcp_hybla.c
162
tcp_snd_cwnd_set(tp, min(tcp_snd_cwnd(tp), tp->snd_ssthresh));
net/ipv4/tcp_hybla.c
164
tcp_snd_cwnd_set(tp, min(tcp_snd_cwnd(tp), tp->snd_cwnd_clamp));
net/ipv4/tcp_illinois.c
227
if (tcp_snd_cwnd(tp) < win_thresh) {
net/ipv4/tcp_illinois.c
287
if (delta >= tcp_snd_cwnd(tp)) {
net/ipv4/tcp_illinois.c
288
tcp_snd_cwnd_set(tp, min(tcp_snd_cwnd(tp) + delta / tcp_snd_cwnd(tp),
net/ipv4/tcp_illinois.c
302
decr = (tcp_snd_cwnd(tp) * ca->beta) >> BETA_SHIFT;
net/ipv4/tcp_illinois.c
303
return max(tcp_snd_cwnd(tp) - decr, 2U);
net/ipv4/tcp_input.c
1154
if (tcp_snd_cwnd(tp) < tp->snd_ssthresh / 2)
net/ipv4/tcp_input.c
1159
rate *= max(tcp_snd_cwnd(tp), tp->packets_out);
net/ipv4/tcp_input.c
2569
tp->prior_cwnd = tcp_snd_cwnd(tp);
net/ipv4/tcp_input.c
2826
tcp_snd_cwnd(tp), tcp_left_out(tp),
net/ipv4/tcp_input.c
2835
tcp_snd_cwnd(tp), tcp_left_out(tp),
net/ipv4/tcp_input.c
2978
tp->prior_cwnd = tcp_snd_cwnd(tp);
net/ipv4/tcp_input.c
3091
val = (u64)tcp_snd_cwnd(tp) * tcp_mss_to_mtu(sk, tp->mss_cache);
net/ipv4/tcp_input.c
3431
tcp_snd_cwnd_set(tp, tcp_snd_cwnd(tp) + 1);
net/ipv4/tcp_input.c
6069
if (tcp_packets_in_flight(tp) >= tcp_snd_cwnd(tp))
net/ipv4/tcp_input.c
622
nr_segs = max_t(u32, TCP_INIT_CWND, tcp_snd_cwnd(tp));
net/ipv4/tcp_ipv4.c
2828
tcp_snd_cwnd(tp),
net/ipv4/tcp_lp.c
303
tcp_snd_cwnd(tp), lp->remote_hz, lp->owd_min, lp->owd_max,
net/ipv4/tcp_lp.c
324
tcp_snd_cwnd_set(tp, max(tcp_snd_cwnd(tp) >> 1U, 1U));
net/ipv4/tcp_metrics.c
411
if (val && (tcp_snd_cwnd(tp) >> 1) > val)
net/ipv4/tcp_metrics.c
413
tcp_snd_cwnd(tp) >> 1);
net/ipv4/tcp_metrics.c
417
if (tcp_snd_cwnd(tp) > val)
net/ipv4/tcp_metrics.c
419
tcp_snd_cwnd(tp));
net/ipv4/tcp_metrics.c
427
max(tcp_snd_cwnd(tp) >> 1, tp->snd_ssthresh));
net/ipv4/tcp_metrics.c
430
tcp_metric_set(tm, TCP_METRIC_CWND, (val + tcp_snd_cwnd(tp)) >> 1);
net/ipv4/tcp_nv.c
200
cnt = tcp_snd_cwnd(tp) << -ca->cwnd_growth_factor;
net/ipv4/tcp_nv.c
203
cnt = max(4U, tcp_snd_cwnd(tp) >> ca->cwnd_growth_factor);
net/ipv4/tcp_nv.c
212
return max((tcp_snd_cwnd(tp) * nv_loss_dec_factor) >> 10, 2U);
net/ipv4/tcp_nv.c
260
if (ca->nv_catchup && tcp_snd_cwnd(tp) >= nv_min_cwnd) {
net/ipv4/tcp_nv.c
374
if (tcp_snd_cwnd(tp) > max_win) {
net/ipv4/tcp_nv.c
401
if (tcp_snd_cwnd(tp) - max_win > 2) {
net/ipv4/tcp_nv.c
405
dec = max(2U, ((tcp_snd_cwnd(tp) - max_win) *
net/ipv4/tcp_nv.c
407
tcp_snd_cwnd_set(tp, tcp_snd_cwnd(tp) - dec);
net/ipv4/tcp_nv.c
414
} else if (tcp_snd_cwnd(tp) <= max_win - nv_pad_buffer) {
net/ipv4/tcp_nv.c
447
if (tcp_snd_cwnd(tp) < nv_min_cwnd)
net/ipv4/tcp_output.c
1279
tcp_snd_cwnd(tp) > tcp_packets_in_flight(tp)) {
net/ipv4/tcp_output.c
164
u32 cwnd = tcp_snd_cwnd(tp);
net/ipv4/tcp_output.c
2147
if (win_used < tcp_snd_cwnd(tp)) {
net/ipv4/tcp_output.c
2149
tcp_snd_cwnd_set(tp, (tcp_snd_cwnd(tp) + win_used) >> 1);
net/ipv4/tcp_output.c
2329
cwnd = tcp_snd_cwnd(tp);
net/ipv4/tcp_output.c
2480
BUG_ON(tcp_snd_cwnd(tp) <= in_flight);
net/ipv4/tcp_output.c
2485
cong_win = (tcp_snd_cwnd(tp) - in_flight) * tp->mss_cache;
net/ipv4/tcp_output.c
2499
u32 chunk = min(tp->snd_wnd, tcp_snd_cwnd(tp) * tp->mss_cache);
net/ipv4/tcp_output.c
2704
tcp_snd_cwnd(tp) < 11 ||
net/ipv4/tcp_output.c
2740
if (tcp_packets_in_flight(tp) + 2 > tcp_snd_cwnd(tp)) {
net/ipv4/tcp_output.c
2802
tcp_snd_cwnd_set(tp, tcp_snd_cwnd(tp) - 1);
net/ipv4/tcp_output.c
3083
is_cwnd_limited |= (tcp_packets_in_flight(tp) >= tcp_snd_cwnd(tp));
net/ipv4/tcp_output.c
3751
segs = tcp_snd_cwnd(tp) - tcp_packets_in_flight(tp);
net/ipv4/tcp_scalable.c
30
tcp_cong_avoid_ai(tp, min(tcp_snd_cwnd(tp), TCP_SCALABLE_AI_CNT),
net/ipv4/tcp_scalable.c
38
return max(tcp_snd_cwnd(tp) - (tcp_snd_cwnd(tp)>>TCP_SCALABLE_MD_SCALE), 2U);
net/ipv4/tcp_vegas.c
167
return min(tp->snd_ssthresh, tcp_snd_cwnd(tp));
net/ipv4/tcp_vegas.c
225
target_cwnd = (u64)tcp_snd_cwnd(tp) * vegas->baseRTT;
net/ipv4/tcp_vegas.c
232
diff = tcp_snd_cwnd(tp) * (rtt-vegas->baseRTT) / vegas->baseRTT;
net/ipv4/tcp_vegas.c
246
tcp_snd_cwnd_set(tp, min(tcp_snd_cwnd(tp),
net/ipv4/tcp_vegas.c
264
tcp_snd_cwnd_set(tp, tcp_snd_cwnd(tp) - 1);
net/ipv4/tcp_vegas.c
271
tcp_snd_cwnd_set(tp, tcp_snd_cwnd(tp) + 1);
net/ipv4/tcp_vegas.c
279
if (tcp_snd_cwnd(tp) < 2)
net/ipv4/tcp_vegas.c
281
else if (tcp_snd_cwnd(tp) > tp->snd_cwnd_clamp)
net/ipv4/tcp_veno.c
154
target_cwnd = (u64)tcp_snd_cwnd(tp) * veno->basertt;
net/ipv4/tcp_veno.c
158
veno->diff = (tcp_snd_cwnd(tp) << V_PARAM_SHIFT) - target_cwnd;
net/ipv4/tcp_veno.c
172
tcp_cong_avoid_ai(tp, tcp_snd_cwnd(tp), acked);
net/ipv4/tcp_veno.c
177
if (tp->snd_cwnd_cnt >= tcp_snd_cwnd(tp)) {
net/ipv4/tcp_veno.c
179
tcp_snd_cwnd(tp) < tp->snd_cwnd_clamp) {
net/ipv4/tcp_veno.c
180
tcp_snd_cwnd_set(tp, tcp_snd_cwnd(tp) + 1);
net/ipv4/tcp_veno.c
189
if (tcp_snd_cwnd(tp) < 2)
net/ipv4/tcp_veno.c
191
else if (tcp_snd_cwnd(tp) > tp->snd_cwnd_clamp)
net/ipv4/tcp_veno.c
207
return max(tcp_snd_cwnd(tp) * 4 / 5, 2U);
net/ipv4/tcp_veno.c
210
return max(tcp_snd_cwnd(tp) >> 1U, 2U);
net/ipv4/tcp_yeah.c
133
bw = tcp_snd_cwnd(tp);
net/ipv4/tcp_yeah.c
141
tcp_snd_cwnd(tp) > yeah->reno_count) {
net/ipv4/tcp_yeah.c
143
tcp_snd_cwnd(tp) >> TCP_YEAH_EPSILON);
net/ipv4/tcp_yeah.c
145
tcp_snd_cwnd_set(tp, tcp_snd_cwnd(tp) - reduction);
net/ipv4/tcp_yeah.c
147
tcp_snd_cwnd_set(tp, max(tcp_snd_cwnd(tp),
net/ipv4/tcp_yeah.c
151
tcp_snd_cwnd(tp));
net/ipv4/tcp_yeah.c
155
yeah->reno_count = max(tcp_snd_cwnd(tp)>>1, 2U);
net/ipv4/tcp_yeah.c
180
yeah->vegas.beg_snd_cwnd = tcp_snd_cwnd(tp);
net/ipv4/tcp_yeah.c
197
reduction = min(reduction, max(tcp_snd_cwnd(tp)>>1, 2U));
net/ipv4/tcp_yeah.c
199
reduction = max(reduction, tcp_snd_cwnd(tp) >> TCP_YEAH_DELTA);
net/ipv4/tcp_yeah.c
201
reduction = max(tcp_snd_cwnd(tp)>>1, 2U);
net/ipv4/tcp_yeah.c
206
return max_t(int, tcp_snd_cwnd(tp) - reduction, 2);
net/ipv4/tcp_yeah.c
74
tcp_cong_avoid_ai(tp, min(tcp_snd_cwnd(tp), TCP_SCALABLE_AI_CNT),
net/ipv4/tcp_yeah.c
78
tcp_cong_avoid_ai(tp, tcp_snd_cwnd(tp), acked);
net/ipv6/tcp_ipv6.c
2193
tcp_snd_cwnd(tp),