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

New sockets get the field set to TCP_INFINITE_SSTHRESH in tcp_init_sock()
In case a socket had this field changed and transitions to TCP_LISTEN
state, tcp_disconnect() also makes sure snd_ssthresh is set to
TCP_INFINITE_SSTHRESH.

So a listener has this field set to TCP_INFINITE_SSTHRESH already.

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