]> git.baikalelectronics.ru Git - kernel.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)
commit1b2b7fa399ae59cbbff61099910bfe64e6702800
tree3ca9c4c3fa9481132eb9d7b8ef955a77c27d3e29
parente78124025bb6ae8500549dcb10f1f9ea3e304345
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