mptcp: move msk state update to subflow_syn_recv_sock()
authorPaolo Abeni <pabeni@redhat.com>
Tue, 17 Mar 2020 14:53:34 +0000 (15:53 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Mar 2020 05:52:24 +0000 (22:52 -0700)
commit7f20d5fc708d30231bce074a099ac040b1b7d3e4
tree5d7efe5ddecc6146f6370a3a706e4b2855b2807b
parent5dd328452688776a02a185ed4957b75f7e576707
mptcp: move msk state update to subflow_syn_recv_sock()

After commit 58b09919626b ("mptcp: create msk early"), the
msk socket is already available at subflow_syn_recv_sock()
time. Let's move there the state update, to mirror more
closely the first subflow state.

The above will also help multiple subflow supports.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/protocol.c
net/mptcp/subflow.c