]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: track and update contiguous data status
authorGeliang Tang <geliang.tang@suse.com>
Fri, 22 Apr 2022 21:55:38 +0000 (14:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 Apr 2022 10:51:05 +0000 (11:51 +0100)
commitdfff41b8d7727a07aba80a51dac72f5f56bd91cb
treef088470f6e47e123b4c12de18ff5caf843bedf4a
parenteb0b410240f1af373ded28e77cb5df753b949b08
mptcp: track and update contiguous data status

This patch adds a new member allow_infinite_fallback in mptcp_sock,
which is initialized to 'true' when the connection begins and is set
to 'false' on any retransmit or successful MP_JOIN. Only do infinite
mapping fallback if there is a single subflow AND there have been no
retransmissions AND there have never been any MP_JOINs.

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>
net/mptcp/protocol.c
net/mptcp/protocol.h
net/mptcp/subflow.c