Lines Matching refs:msk
154 struct mptcp_sock *msk = mptcp_sk(subflow->conn);
175 WRITE_ONCE(msk->token, subflow->token);
176 __sk_nulls_add_node_rcu((struct sock *)msk, &bucket->msk_chain);
186 * @msk: the just cloned socket linked to the new connection
192 struct mptcp_sock *msk)
195 struct sock *sk = (struct sock *)msk;
206 __sk_nulls_add_node_rcu((struct sock *)msk, &bucket->msk_chain);
214 struct mptcp_sock *msk;
222 msk = mptcp_sk(sk);
223 if (READ_ONCE(msk->token) == token)
250 struct mptcp_sock *msk;
258 msk = mptcp_sk(sk);
259 if (READ_ONCE(msk->token) != token ||
266 if (READ_ONCE(msk->token) != token ||
277 msk = NULL;
281 return msk;
371 * @msk: mptcp connection dropping the token
373 * Remove the token associated to @msk
375 void mptcp_token_destroy(struct mptcp_sock *msk)
377 struct sock *sk = (struct sock *)msk;
381 if (sk_unhashed((struct sock *)msk))
385 bucket = token_bucket(msk->token);
387 pos = __token_lookup_msk(bucket, msk->token);
388 if (!WARN_ON_ONCE(pos != msk)) {
393 WRITE_ONCE(msk->token, 0);