tcp: clear tp->total_retrans in tcp_disconnect()
[linux-2.6-microblaze.git] / net / ipv4 / tcp.c
index 484485a..dd57f1e 100644 (file)
@@ -2626,6 +2626,7 @@ int tcp_disconnect(struct sock *sk, int flags)
        tcp_set_ca_state(sk, TCP_CA_Open);
        tp->is_sack_reneg = 0;
        tcp_clear_retrans(tp);
+       tp->total_retrans = 0;
        inet_csk_delack_init(sk);
        /* Initialize rcv_mss to TCP_MIN_MSS to avoid division by 0
         * issue in __tcp_select_window()