tcp: move icsk_rto init to tcp_disconnect()
authorEric Dumazet <edumazet@google.com>
Thu, 17 Jan 2019 19:23:33 +0000 (11:23 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Jan 2019 06:19:04 +0000 (22:19 -0800)
commit6a408147eac4a7e51ead1bcf939a71b64c2daadf
treeb806b8c4f9de2f41505ffc3cf45fd403d41ca731
parentb84235e291045799e100a40c485439182087bae9
tcp: move icsk_rto init to tcp_disconnect()

If we make sure a listener always has its icsk_rto
field set to TCP_TIMEOUT_INIT, we do not need to rewrite
this field after a new clone is created.

tcp_disconnect() is very seldom used in real applications.

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