]> 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)
commitbbbe50b367271bb10a817fbd2e60abf7847c177b
tree6c197ce6eaf9e8f7e500f094d0cb7d3a721985cf
parentadc3652909e25625d066a01250e2cbfa1464b980
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