OSDN Git Service

mptcp: consolidate transition to TCP_CLOSE in mptcp_do_fastclose()
authorPaolo Abeni <pabeni@redhat.com>
Tue, 20 Jun 2023 16:30:21 +0000 (18:30 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 22 Jun 2023 05:45:58 +0000 (22:45 -0700)
commitbbd49d114d5790a2dc3f67926cec3fc48b2d5d81
tree7799e1bf55536ee7542d52988896493a7592f03c
parent00079f18c24f373797cc38273c1bc0b475469d2b
mptcp: consolidate transition to TCP_CLOSE in mptcp_do_fastclose()

The MPTCP code always set the msk state to TCP_CLOSE before
calling performing the fast-close. Move such state transition in
mptcp_do_fastclose() to avoid some code duplication.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/protocol.c