]> git.ipfire.org Git - people/ms/linux.git/commit
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)
commitea66758c1795cef81dc59cd5240e9d0f5c5207cf
tree3ca9c4c3fa9481132eb9d7b8ef955a77c27d3e29
parent92be2f522777b775a2d83b00c3690732c1243dfc
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