mptcp: subflow: split subflow_init_req
authorFlorian Westphal <fw@strlen.de>
Thu, 30 Jul 2020 19:25:52 +0000 (21:25 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 Jul 2020 23:55:32 +0000 (16:55 -0700)
commit78d8b7bc4b32e2d32ac19d3b217166224c4342d0
tree822a0aa546f7b1745dde696b8262a19d3e7322ed
parent535fb8152f313dd5d30ef84ce55b01ad9cbae3cf
mptcp: subflow: split subflow_init_req

When syncookie support is added, we will need to add a variant of
subflow_init_req() helper.  It will do almost same thing except
that it will not compute/add a token to the mptcp token tree.

To avoid excess copy&paste, this commit splits away part of the
code into a new helper, __subflow_init_req, that can then be re-used
from the 'no insert' function added in a followup change.

Signed-off-by: Florian Westphal <fw@strlen.de>
Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/subflow.c