mptcp: add a new helper subflow_req_create_thmac
authorGeliang Tang <geliangtang@gmail.com>
Mon, 1 Feb 2021 23:09:14 +0000 (15:09 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 3 Feb 2021 02:37:19 +0000 (18:37 -0800)
commitec20e14396aeea26f6bf9221bce686a33bde9047
tree2aa51ec44e4611867102b523dbbdc53e6107f06c
parentb5e2e42fe5660266553a74711534db427d725a45
mptcp: add a new helper subflow_req_create_thmac

This patch adds a new helper named subflow_req_create_thmac, which is
extracted from subflow_token_join_request. It initializes subflow_req's
local_nonce and thmac fields, those are the more expensive to populate.

Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/subflow.c