Skip to contentSkip to conversation

tcp: avoid cwnd undo after receiving ECN

PATCH Applied Yuchung Cheng 2 participants 2 messages Jan 29, 2016 – Jan 30, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 net/ipv4/tcp_input.c | 2 --
 1 file changed, 2 deletions(-)
net/ipv4/tcp_input.c +0 -2
index d2ad433..1c2a734 100644
@@ -2366,8 +2366,6 @@ static void tcp_undo_cwnd_reduction(struct sock *sk, bool unmark_loss)
 			tp->snd_ssthresh = tp->prior_ssthresh;
 			tcp_ecn_withdraw_cwr(tp);
 		}
-	} else {
-		tp->snd_cwnd = max(tp->snd_cwnd, tp->snd_ssthresh);
 	}
 	tp->snd_cwnd_stamp = tcp_time_stamp;
 	tp->undo_marker = 0;
Signature · 1 line
2.7.0.rc3.207.g0ac5344
maintainer Applied
#1 lore raw

From: Yuchung Cheng <[email protected]>
Date: Fri, 29 Jan 2016 15:11:50 -0800

Quoted 9 lines

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.

Applied, thanks.