|
@@ -365,10 +365,8 @@ int tcp_set_congestion_control(struct sock *sk, const char *name)
|
|
|
*/
|
|
|
u32 tcp_slow_start(struct tcp_sock *tp, u32 acked)
|
|
|
{
|
|
|
- u32 cwnd = tp->snd_cwnd + acked;
|
|
|
+ u32 cwnd = min(tp->snd_cwnd + acked, tp->snd_ssthresh);
|
|
|
|
|
|
- if (cwnd > tp->snd_ssthresh)
|
|
|
- cwnd = tp->snd_ssthresh + 1;
|
|
|
acked -= cwnd - tp->snd_cwnd;
|
|
|
tp->snd_cwnd = min(cwnd, tp->snd_cwnd_clamp);
|
|
|
|