]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: do not clear packets_out in tcp_create_openreq_child()
authorEric Dumazet <edumazet@google.com>
Thu, 17 Jan 2019 19:23:34 +0000 (11:23 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Jan 2019 06:19:04 +0000 (22:19 -0800)
commit1427c64b6c7710669df8dfe93ad93161cc7ce5f2
tree515fde4e49c918e2c44714e0e77507b1eb34100f
parent11538b170f210fa61fd6f4a52eebac0ad2eab589
tcp: do not clear packets_out in tcp_create_openreq_child()

New sockets have this field cleared, and tcp_disconnect()
calls tcp_write_queue_purge() which among other things
also clear tp->packets_out

So a listener is guaranteed to have this field cleared.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_minisocks.c