mptcp: track window announced to peer
authorFlorian Westphal <fw@strlen.de>
Thu, 19 Nov 2020 19:46:02 +0000 (11:46 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 20 Nov 2020 23:33:25 +0000 (15:33 -0800)
commitfa3fe2b150316b294f2c662653501273ff25bba8
tree6c197ce6eaf9e8f7e500f094d0cb7d3a721985cf
parent523514ed0a998fda389b9b6f00d0f2054ba30d25
mptcp: track window announced to peer

OoO handling attempts to detect when packet is out-of-window by testing
current ack sequence and remaining space vs. sequence number.

This doesn't work reliably. Store the highest allowed sequence number
that we've announced and use it to detect oow packets.

Do this when mptcp options get written to the packet (wire format).
For this to work we need to move the write_options call until after
stack selected a new tcp window.

Acked-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/mptcp.h
net/ipv4/tcp_output.c
net/mptcp/options.c
net/mptcp/protocol.c
net/mptcp/protocol.h