tcp: avoid cwnd undo after receiving ECN
authorYuchung Cheng <ycheng@google.com>
Fri, 29 Jan 2016 23:11:50 +0000 (15:11 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 30 Jan 2016 07:03:56 +0000 (23:03 -0800)
commit99b4dd9f2423130875ac486fe587cd103c64f753
treeb355e804e53334d5930f34cfcca0beeb4465af63
parent3d45296ab96c2ec8308226b3350a6d9e48379870
tcp: avoid cwnd undo after receiving ECN

RFC 4015 section 3.4 says the TCP sender MUST refrain from
reversing the congestion control state when the ACK signals
congestion through the ECN-Echo flag. Currently we may not
always do that when prior_ssthresh is reset upon receiving
ACKs with ECE marks. This patch fixes that.

Signed-off-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c