[TCP]: Fixes IW > 2 cases when TCP is application limited

Whenever a transfer is application limited, we are allowed at least
initial window worth of data per window unless cwnd is previously
less than that.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Ilpo Järvinen and committed by David S. Miller d254bcdb c4c0ce5c

+2 -1
+2 -1
net/ipv4/tcp_input.c
··· 3541 3541 if (inet_csk(sk)->icsk_ca_state == TCP_CA_Open && 3542 3542 sk->sk_socket && !test_bit(SOCK_NOSPACE, &sk->sk_socket->flags)) { 3543 3543 /* Limited by application or receiver window. */ 3544 - u32 win_used = max(tp->snd_cwnd_used, 2U); 3544 + u32 init_win = tcp_init_cwnd(tp, __sk_dst_get(sk)); 3545 + u32 win_used = max(tp->snd_cwnd_used, init_win); 3545 3546 if (win_used < tp->snd_cwnd) { 3546 3547 tp->snd_ssthresh = tcp_current_ssthresh(sk); 3547 3548 tp->snd_cwnd = (tp->snd_cwnd + win_used) >> 1;