]> Git Repo - linux.git/commit
mptcp: infinite mapping sending
authorGeliang Tang <[email protected]>
Fri, 22 Apr 2022 21:55:39 +0000 (14:55 -0700)
committerDavid S. Miller <[email protected]>
Sat, 23 Apr 2022 10:51:05 +0000 (11:51 +0100)
commit1e39e5a32ad7fdd82d6e071aa14ecd511eedc1f7
tree43ea9946d71f5d469772114d960f1f4e529f88f2
parent0530020a7c8f2204e784f0dbdc882bbd961fdbde
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 <[email protected]>
Signed-off-by: Geliang Tang <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
include/net/mptcp.h
net/mptcp/options.c
net/mptcp/pm.c
net/mptcp/protocol.c
net/mptcp/protocol.h
This page took 0.05735 seconds and 4 git commands to generate.