]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: full disconnect implementation
authorPaolo Abeni <pabeni@redhat.com>
Fri, 7 Jan 2022 00:20:16 +0000 (16:20 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Jan 2022 11:27:06 +0000 (11:27 +0000)
commit7878923f8f0cb3ab237d401850925b70228faa3e
treece6469a982603e3dddbe67c5c3205b961324e437
parent40c6005abab7db697bb873444c4f7da9919d8b24
mptcp: full disconnect implementation

The current mptcp_disconnect() implementation lacks several
steps, we additionally need to reset the msk socket state
and flush the subflow list.

Factor out the needed helper to avoid code duplication.

Additionally ensure that the initial subflow is disposed
only after mptcp_close(), just reset it at disconnect time.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/pm.c
net/mptcp/protocol.c
net/mptcp/protocol.h
net/mptcp/token.c