-
- Downloads
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>
Showing
- include/net/mptcp.h 2 additions, 1 deletioninclude/net/mptcp.h
- net/mptcp/options.c 6 additions, 2 deletionsnet/mptcp/options.c
- net/mptcp/pm.c 6 additions, 0 deletionsnet/mptcp/pm.c
- net/mptcp/protocol.c 17 additions, 0 deletionsnet/mptcp/protocol.c
- net/mptcp/protocol.h 12 additions, 0 deletionsnet/mptcp/protocol.h
Loading
Please register or sign in to comment