hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/net/ipv4/tcp_bic.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Binary Increase Congestion control for TCP
34 * Home page:
....@@ -144,12 +145,13 @@
144145 if (!tcp_is_cwnd_limited(sk))
145146 return;
146147
147
- if (tcp_in_slow_start(tp))
148
- tcp_slow_start(tp, acked);
149
- else {
150
- bictcp_update(ca, tp->snd_cwnd);
151
- tcp_cong_avoid_ai(tp, ca->cnt, 1);
148
+ if (tcp_in_slow_start(tp)) {
149
+ acked = tcp_slow_start(tp, acked);
150
+ if (!acked)
151
+ return;
152152 }
153
+ bictcp_update(ca, tp->snd_cwnd);
154
+ tcp_cong_avoid_ai(tp, ca->cnt, acked);
153155 }
154156
155157 /*