.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Binary Increase Congestion control for TCP |
---|
3 | 4 | * Home page: |
---|
.. | .. |
---|
144 | 145 | if (!tcp_is_cwnd_limited(sk)) |
---|
145 | 146 | return; |
---|
146 | 147 | |
---|
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; |
---|
152 | 152 | } |
---|
| 153 | + bictcp_update(ca, tp->snd_cwnd); |
---|
| 154 | + tcp_cong_avoid_ai(tp, ca->cnt, acked); |
---|
153 | 155 | } |
---|
154 | 156 | |
---|
155 | 157 | /* |
---|