tcp: allow MPTCP to update the announced window
authorPaolo Abeni <pabeni@redhat.com>
Wed, 4 May 2022 21:54:06 +0000 (14:54 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 6 May 2022 02:00:15 +0000 (19:00 -0700)
commit56384d61ab10b4a042b5548c1a98318bdc226e25
tree3ca9c4c3fa9481132eb9d7b8ef955a77c27d3e29
parent330ff2742b814f1b546580008a0ca93d8496916b
tcp: allow MPTCP to update the announced window

The MPTCP RFC requires that the MPTCP-level receive window's
right edge never moves backward. Currently the MPTCP code
enforces such constraint while tracking the right edge, but it
does not reflects it on the wire, as MPTCP lacks a suitable hook
to update accordingly the TCP header.

This change modifies the existing mptcp_write_options() hook,
providing the current packet's TCP header to the MPTCP protocol,
so that the next patch could implement the above mentioned
constraint.

No functional changes intended.

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