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)
commitb29fcfb54cd70caca5b11c80d8d238854938884a
treece6469a982603e3dddbe67c5c3205b961324e437
parentf284c0c7732189fa77567dc061c5f4205c4fa05b
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