tcp: skip cwnd moderation in TCP_CA_Open in tcp_try_to_open
authorNeal Cardwell <ncardwell@google.com>
Wed, 16 Nov 2011 08:58:05 +0000 (08:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 27 Nov 2011 23:54:09 +0000 (18:54 -0500)
commit8cd6d6162d998da579d40a1ee061bf8ce1610ff8
treec57f017e0f0f4b0a12760918f999d411a6027c63
parentf698204bd0bfdc645642e271da117b56b795aee0
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>
net/ipv4/tcp_input.c