Skip to content

Commit 99b4dd9

Browse files
yuchungchengdavem330
authored andcommitted
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>
1 parent 3d45296 commit 99b4dd9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

net/ipv4/tcp_input.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2366,8 +2366,6 @@ static void tcp_undo_cwnd_reduction(struct sock *sk, bool unmark_loss)
23662366
tp->snd_ssthresh = tp->prior_ssthresh;
23672367
tcp_ecn_withdraw_cwr(tp);
23682368
}
2369-
} else {
2370-
tp->snd_cwnd = max(tp->snd_cwnd, tp->snd_ssthresh);
23712369
}
23722370
tp->snd_cwnd_stamp = tcp_time_stamp;
23732371
tp->undo_marker = 0;

0 commit comments

Comments
 (0)