aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/tcp_ipv6.c
diff options
context:
space:
mode:
authorYuchung Cheng <[email protected]>2015-07-09 20:16:31 +0000
committerDavid S. Miller <[email protected]>2015-07-09 21:22:52 +0000
commitb20a3fa30a281b52b2576b509efbe5cd47a5a79b (patch)
treedb19bf4b5ef34ff71a94b9b50ac58875734fedd1 /net/ipv6/tcp_ipv6.c
parenttcp: do not slow start when cwnd equals ssthresh (diff)
downloadkernel-b20a3fa30a281b52b2576b509efbe5cd47a5a79b.tar.gz
kernel-b20a3fa30a281b52b2576b509efbe5cd47a5a79b.zip
tcp: update congestion state first before raising cwnd
The congestion state and cwnd can be updated in the wrong order. For example, upon receiving a dubious ACK, we incorrectly raise the cwnd first (tcp_may_raise_cwnd()/tcp_cong_avoid()) because the state is still Open, then enter recovery state to reduce cwnd. For another example, if the ACK indicates spurious timeout or retransmits, we first revert the cwnd reduction and congestion state back to Open state. But we don't raise the cwnd even though the ACK does not indicate any congestion. To fix this problem we should first call tcp_fastretrans_alert() to process the dubious ACK and update the congestion state, then call tcp_may_raise_cwnd() that raises cwnd based on the current state. Signed-off-by: Yuchung Cheng <[email protected]> Signed-off-by: Neal Cardwell <[email protected]> Signed-off-by: Eric Dumazet <[email protected]> Signed-off-by: Nandita Dukkipati <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
0 files changed, 0 insertions, 0 deletions