diff options
author | Matthieu Baerts (NGI0) <matttbe@kernel.org> | 2024-09-09 22:09:21 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-09-12 00:57:49 +0200 |
commit | 65b02260a0e0c7cbb2faafd6c84ad95f68a2acae (patch) | |
tree | 849c9a03ffa518da55274695dd1ea055ccdb1350 /net/mptcp/protocol.h | |
parent | Merge branch 'net-hsr-use-the-seqnr-lock-for-frames-received-via-interlink-port' (diff) | |
download | linux-65b02260a0e0c7cbb2faafd6c84ad95f68a2acae.tar.xz linux-65b02260a0e0c7cbb2faafd6c84ad95f68a2acae.zip |
mptcp: export mptcp_subflow_early_fallback()
This helper will be used outside protocol.h in the following commit.
While at it, also add a 'pr_fallback()' debug print, to help identifying
fallbacks.
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20240909-net-next-mptcp-fallback-x-mpc-v1-1-da7ebb4cd2a3@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/mptcp/protocol.h')
-rw-r--r-- | net/mptcp/protocol.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/net/mptcp/protocol.h b/net/mptcp/protocol.h index bf03bff9ac44..302bd808b839 100644 --- a/net/mptcp/protocol.h +++ b/net/mptcp/protocol.h @@ -1215,6 +1215,14 @@ static inline void mptcp_do_fallback(struct sock *ssk) #define pr_fallback(a) pr_debug("%s:fallback to TCP (msk=%p)\n", __func__, a) +static inline void mptcp_subflow_early_fallback(struct mptcp_sock *msk, + struct mptcp_subflow_context *subflow) +{ + pr_fallback(msk); + subflow->request_mptcp = 0; + __mptcp_do_fallback(msk); +} + static inline bool mptcp_check_infinite_map(struct sk_buff *skb) { struct mptcp_ext *mpext; |