author: Jianguo Wu <wujianguo@chinatelecom.cn> 2021-05-27 16:54:24 -0700
committer: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2021-07-14 17:07:00 +0200
commit: 4eafee9b9ef641b8bfe93fcafa0b22dd0396520f
parent: 005d5d547fdc07c62f57a2c9e3045c288c502e98
Commit Summary:
Diffstat:
1 file changed, 3 insertions, 3 deletions
diff --git a/net/mptcp/token.c b/net/mptcp/token.c
index 8f0270a780ce..72a24e63b131 100644
--- a/net/mptcp/token.c
+++ b/net/mptcp/token.c
@@ -156,9 +156,6 @@ int mptcp_token_new_connect(struct sock *sk)
int retries = TOKEN_MAX_RETRIES;
struct token_bucket *bucket;
- pr_debug("ssk=%p, local_key=%llu, token=%u, idsn=%llu\n",
- sk, subflow->local_key, subflow->token, subflow->idsn);
-
again:
mptcp_crypto_key_gen_sha(&subflow->local_key, &subflow->token,
&subflow->idsn);
@@ -172,6 +169,9 @@ again:
goto again;
}
+ pr_debug("ssk=%p, local_key=%llu, token=%u, idsn=%llu\n",
+ sk, subflow->local_key, subflow->token, subflow->idsn);
+
WRITE_ONCE(msk->token, subflow->token);
__sk_nulls_add_node_rcu((struct sock *)msk, &bucket->msk_chain);
bucket->chain_len++;