]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit89d365ee92ebe437ba18ccbe00fb4509d652a2b9
tree6c197ce6eaf9e8f7e500f094d0cb7d3a721985cf
parent52353df04163bf4fcf58537a51e1a61400a8b517
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