diff options
author | Geliang Tang <geliang.tang@suse.com> | 2022-04-22 14:55:39 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-04-23 11:51:05 +0100 |
commit | 1e39e5a32ad7fdd82d6e071aa14ecd511eedc1f7 (patch) | |
tree | 43ea9946d71f5d469772114d960f1f4e529f88f2 /include/net/mptcp.h | |
parent | 0530020a7c8f2204e784f0dbdc882bbd961fdbde (diff) | |
download | lwn-1e39e5a32ad7fdd82d6e071aa14ecd511eedc1f7.tar.gz lwn-1e39e5a32ad7fdd82d6e071aa14ecd511eedc1f7.zip |
mptcp: infinite mapping sending
This patch adds the infinite mapping sending logic.
Add a new flag send_infinite_map in struct mptcp_subflow_context. Set
it true when a single contiguous subflow is in use and the
allow_infinite_fallback flag is true in mptcp_pm_mp_fail_received().
In mptcp_sendmsg_frag(), if this flag is true, call the new function
mptcp_update_infinite_map() to set the infinite mapping.
Add a new flag infinite_map in struct mptcp_ext, set it true in
mptcp_update_infinite_map(), and check this flag in a new helper
mptcp_check_infinite_map().
In mptcp_update_infinite_map(), set data_len to 0, and clear the
send_infinite_map flag, then do fallback.
In mptcp_established_options(), use the helper mptcp_check_infinite_map()
to let the infinite mapping DSS can be sent out in the fallback mode.
Suggested-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Geliang Tang <geliang.tang@suse.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/mptcp.h')
-rw-r--r-- | include/net/mptcp.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net/mptcp.h b/include/net/mptcp.h index 0a3b0fb04a3b..8b1afd6f5cc4 100644 --- a/include/net/mptcp.h +++ b/include/net/mptcp.h @@ -35,7 +35,8 @@ struct mptcp_ext { frozen:1, reset_transient:1; u8 reset_reason:4, - csum_reqd:1; + csum_reqd:1, + infinite_map:1; }; #define MPTCP_RM_IDS_MAX 8 |