]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: clear tp->data_segs{in|out} in tcp_disconnect()
authorEric Dumazet <edumazet@google.com>
Fri, 31 Jan 2020 18:32:41 +0000 (10:32 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 1 Feb 2020 06:12:22 +0000 (22:12 -0800)
commitef1bc3ebd745da70a31a78d7a4e883513a095a24
treef1b8aabc193d04584774dabc53b9b33ca3c9a9a8
parentb12882ee304a1290b149ffde03df80bd0148f2ec
tcp: clear tp->data_segs{in|out} in tcp_disconnect()

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: 33d2ecb01160 ("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>
net/ipv4/tcp.c