OSDN Git Service

mptcp: more accurate timeout
authorPaolo Abeni <pabeni@redhat.com>
Fri, 13 Aug 2021 22:15:41 +0000 (15:15 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 14 Aug 2021 10:37:25 +0000 (11:37 +0100)
commit33d41c9cd74c56643a710810703b6bce6eb25efa
tree394f65feb245f5bf2539c5598bd03f62743ca11d
parente5f31552674e88bff3a4e3ca3e5357668b5f2973
mptcp: more accurate timeout

As reported by Maxim, we have a lot of MPTCP-level
retransmissions when multilple links with different latencies
are in use.

This patch refactor the mptcp-level timeout accounting so that
the maximum of all the active subflow timeout is used. To avoid
traversing the subflow list multiple times, the update is
performed inside the packet scheduler.

Additionally clean-up a bit timeout handling.

Signed-off-by: Paolo Abeni <pabeni@redhat.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