diff options
Diffstat (limited to 'net/ipv4/tcp_input.c')
-rw-r--r-- | net/ipv4/tcp_input.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index 8a8c5c2d90cb..b35badf53aa5 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c | |||
@@ -1278,7 +1278,7 @@ static int tcp_check_sack_reneging(struct sock *sk) | |||
1278 | inet_csk(sk)->icsk_retransmits++; | 1278 | inet_csk(sk)->icsk_retransmits++; |
1279 | tcp_retransmit_skb(sk, skb_peek(&sk->sk_write_queue)); | 1279 | tcp_retransmit_skb(sk, skb_peek(&sk->sk_write_queue)); |
1280 | inet_csk_reset_xmit_timer(sk, ICSK_TIME_RETRANS, | 1280 | inet_csk_reset_xmit_timer(sk, ICSK_TIME_RETRANS, |
1281 | inet_csk(sk)->icsk_rto); | 1281 | inet_csk(sk)->icsk_rto, TCP_RTO_MAX); |
1282 | return 1; | 1282 | return 1; |
1283 | } | 1283 | } |
1284 | return 0; | 1284 | return 0; |
@@ -1961,7 +1961,7 @@ static inline void tcp_ack_packets_out(struct sock *sk, struct tcp_sock *tp) | |||
1961 | if (!tp->packets_out) { | 1961 | if (!tp->packets_out) { |
1962 | inet_csk_clear_xmit_timer(sk, ICSK_TIME_RETRANS); | 1962 | inet_csk_clear_xmit_timer(sk, ICSK_TIME_RETRANS); |
1963 | } else { | 1963 | } else { |
1964 | inet_csk_reset_xmit_timer(sk, ICSK_TIME_RETRANS, inet_csk(sk)->icsk_rto); | 1964 | inet_csk_reset_xmit_timer(sk, ICSK_TIME_RETRANS, inet_csk(sk)->icsk_rto, TCP_RTO_MAX); |
1965 | } | 1965 | } |
1966 | } | 1966 | } |
1967 | 1967 | ||
@@ -2147,7 +2147,8 @@ static void tcp_ack_probe(struct sock *sk) | |||
2147 | */ | 2147 | */ |
2148 | } else { | 2148 | } else { |
2149 | inet_csk_reset_xmit_timer(sk, ICSK_TIME_PROBE0, | 2149 | inet_csk_reset_xmit_timer(sk, ICSK_TIME_PROBE0, |
2150 | min(icsk->icsk_rto << icsk->icsk_backoff, TCP_RTO_MAX)); | 2150 | min(icsk->icsk_rto << icsk->icsk_backoff, TCP_RTO_MAX), |
2151 | TCP_RTO_MAX); | ||
2151 | } | 2152 | } |
2152 | } | 2153 | } |
2153 | 2154 | ||
@@ -3968,7 +3969,8 @@ static int tcp_rcv_synsent_state_process(struct sock *sk, struct sk_buff *skb, | |||
3968 | inet_csk(sk)->icsk_ack.ato = TCP_ATO_MIN; | 3969 | inet_csk(sk)->icsk_ack.ato = TCP_ATO_MIN; |
3969 | tcp_incr_quickack(sk); | 3970 | tcp_incr_quickack(sk); |
3970 | tcp_enter_quickack_mode(sk); | 3971 | tcp_enter_quickack_mode(sk); |
3971 | inet_csk_reset_xmit_timer(sk, ICSK_TIME_DACK, TCP_DELACK_MAX); | 3972 | inet_csk_reset_xmit_timer(sk, ICSK_TIME_DACK, |
3973 | TCP_DELACK_MAX, TCP_RTO_MAX); | ||
3972 | 3974 | ||
3973 | discard: | 3975 | discard: |
3974 | __kfree_skb(skb); | 3976 | __kfree_skb(skb); |