Message ID | CADVnQy=BXvWMXUGeeABjsHDpfa4FF+RUfCvJXpupcyYKG+=+ig@mail.gmail.com |
---|---|
State | RFC, archived |
Delegated to: | David Miller |
Headers | show |
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index d0ad355..8e6a772 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c @@ -2145,6 +2145,7 @@ repair: tcp_cwnd_validate(sk, is_cwnd_limited); return false; } + tp->is_cwnd_limited |= is_cwnd_limited; return !tp->packets_out && tcp_send_head(sk); } @@ -2762,8 +2763,10 @@ void tcp_xmit_retransmit_queue(struct sock *sk) * packet to be MSS sized and all the * packet counting works out. */ - if (tcp_packets_in_flight(tp) >= tp->snd_cwnd) + if (tcp_packets_in_flight(tp) >= tp->snd_cwnd) { + tp->is_cwnd_limited = true; return; + } if (fwd_rexmitting) { begin_fwd: