]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit56ffde669bf7c523390a39a6174e41e728e5f78e
tree822a0aa546f7b1745dde696b8262a19d3e7322ed
parent8617fb021948f758292b40930b185cf6628ff697
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