Skip to content

Commit 8cd6d61

Browse files
nealcardwelldavem330
authored andcommitted
tcp: skip cwnd moderation in TCP_CA_Open in tcp_try_to_open
The problem: Senders were overriding cwnd values picked during an undo by calling tcp_moderate_cwnd() in tcp_try_to_open(). The fix: Don't moderate cwnd in tcp_try_to_open() if we're in TCP_CA_Open, since doing so is generally unnecessary and specifically would override a DSACK-based undo of a cwnd reduction made in fast recovery. Signed-off-by: Neal Cardwell <ncardwell@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent f698204 commit 8cd6d61

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎net/ipv4/tcp_input.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2881,7 +2881,8 @@ static void tcp_try_to_open(struct sock *sk, int flag)
28812881

28822882
if (inet_csk(sk)->icsk_ca_state != TCP_CA_CWR) {
28832883
tcp_try_keep_open(sk);
2884-
tcp_moderate_cwnd(tp);
2884+
if (inet_csk(sk)->icsk_ca_state != TCP_CA_Open)
2885+
tcp_moderate_cwnd(tp);
28852886
} else {
28862887
tcp_cwnd_down(sk, flag);
28872888
}

0 commit comments

Comments
 (0)