diff options
Diffstat (limited to 'net/ipv4/tcp_input.c')
-rw-r--r-- | net/ipv4/tcp_input.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index cda3ffedadb6..4e4d6bcd0ca9 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c | |||
@@ -1920,14 +1920,13 @@ void tcp_enter_loss(struct sock *sk) | |||
1920 | const struct inet_connection_sock *icsk = inet_csk(sk); | 1920 | const struct inet_connection_sock *icsk = inet_csk(sk); |
1921 | struct tcp_sock *tp = tcp_sk(sk); | 1921 | struct tcp_sock *tp = tcp_sk(sk); |
1922 | struct sk_buff *skb; | 1922 | struct sk_buff *skb; |
1923 | bool new_recovery = false; | 1923 | bool new_recovery = icsk->icsk_ca_state < TCP_CA_Recovery; |
1924 | bool is_reneg; /* is receiver reneging on SACKs? */ | 1924 | bool is_reneg; /* is receiver reneging on SACKs? */ |
1925 | 1925 | ||
1926 | /* Reduce ssthresh if it has not yet been made inside this window. */ | 1926 | /* Reduce ssthresh if it has not yet been made inside this window. */ |
1927 | if (icsk->icsk_ca_state <= TCP_CA_Disorder || | 1927 | if (icsk->icsk_ca_state <= TCP_CA_Disorder || |
1928 | !after(tp->high_seq, tp->snd_una) || | 1928 | !after(tp->high_seq, tp->snd_una) || |
1929 | (icsk->icsk_ca_state == TCP_CA_Loss && !icsk->icsk_retransmits)) { | 1929 | (icsk->icsk_ca_state == TCP_CA_Loss && !icsk->icsk_retransmits)) { |
1930 | new_recovery = true; | ||
1931 | tp->prior_ssthresh = tcp_current_ssthresh(sk); | 1930 | tp->prior_ssthresh = tcp_current_ssthresh(sk); |
1932 | tp->snd_ssthresh = icsk->icsk_ca_ops->ssthresh(sk); | 1931 | tp->snd_ssthresh = icsk->icsk_ca_ops->ssthresh(sk); |
1933 | tcp_ca_event(sk, CA_EVENT_LOSS); | 1932 | tcp_ca_event(sk, CA_EVENT_LOSS); |