diff options
-rw-r--r-- | net/ipv4/tcp_input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index af32accda2a9..1ccc97b368c7 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c | |||
@@ -1955,6 +1955,8 @@ void tcp_enter_loss(struct sock *sk) | |||
1955 | struct net *net = sock_net(sk); | 1955 | struct net *net = sock_net(sk); |
1956 | bool new_recovery = icsk->icsk_ca_state < TCP_CA_Recovery; | 1956 | bool new_recovery = icsk->icsk_ca_state < TCP_CA_Recovery; |
1957 | 1957 | ||
1958 | tcp_timeout_mark_lost(sk); | ||
1959 | |||
1958 | /* Reduce ssthresh if it has not yet been made inside this window. */ | 1960 | /* Reduce ssthresh if it has not yet been made inside this window. */ |
1959 | if (icsk->icsk_ca_state <= TCP_CA_Disorder || | 1961 | if (icsk->icsk_ca_state <= TCP_CA_Disorder || |
1960 | !after(tp->high_seq, tp->snd_una) || | 1962 | !after(tp->high_seq, tp->snd_una) || |
@@ -1969,8 +1971,6 @@ void tcp_enter_loss(struct sock *sk) | |||
1969 | tp->snd_cwnd_cnt = 0; | 1971 | tp->snd_cwnd_cnt = 0; |
1970 | tp->snd_cwnd_stamp = tcp_jiffies32; | 1972 | tp->snd_cwnd_stamp = tcp_jiffies32; |
1971 | 1973 | ||
1972 | tcp_timeout_mark_lost(sk); | ||
1973 | |||
1974 | /* Timeout in disordered state after receiving substantial DUPACKs | 1974 | /* Timeout in disordered state after receiving substantial DUPACKs |
1975 | * suggests that the degree of reordering is over-estimated. | 1975 | * suggests that the degree of reordering is over-estimated. |
1976 | */ | 1976 | */ |