--- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c @@ -2381,6 +2381,8 @@ int tcp_disconnect(struct sock *sk, int tcp_saved_syn_free(tp); tp->bytes_acked = 0; tp->bytes_received = 0; + tp->data_segs_in = 0; + tp->data_segs_out = 0; /* Clean up fastopen related fields */ tcp_free_fastopen_req(tp);