mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
tcp: clear tp->data_segs{in|out} in tcp_disconnect()
[ Upstream commit db7ffee6f3eb3683cdcaeddecc0a630a14546fe3 ]
tp->data_segs_in and tp->data_segs_out need to be cleared
in tcp_disconnect().
tcp_disconnect() is rarely used, but it is worth fixing it.
Fixes: a44d6eacda ("tcp: Add RFC4898 tcpEStatsPerfDataSegsOut/In")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Martin KaFai Lau <kafai@fb.com>
Cc: Yuchung Cheng <ycheng@google.com>
Cc: Neal Cardwell <ncardwell@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2fc4773b6a
commit
31fceaf085
1 changed files with 2 additions and 0 deletions
|
|
@ -2639,6 +2639,8 @@ int tcp_disconnect(struct sock *sk, int flags)
|
|||
tp->bytes_acked = 0;
|
||||
tp->bytes_received = 0;
|
||||
tp->bytes_retrans = 0;
|
||||
tp->data_segs_in = 0;
|
||||
tp->data_segs_out = 0;
|
||||
tp->duplicate_sack[0].start_seq = 0;
|
||||
tp->duplicate_sack[0].end_seq = 0;
|
||||
tp->dsack_dups = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue