]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: push pending frames when subflow has free space
authorPaolo Abeni <pabeni@redhat.com>
Wed, 16 Dec 2020 11:48:34 +0000 (12:48 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 17 Dec 2020 18:24:47 +0000 (10:24 -0800)
commit020d2c69cb73f3d9bd8534514af8ebc4470d9146
tree1cf8f58d821e69d0c6ce8f61f2a50682d2c824b6
parentee76195ceba3b522db89c10b05db286c6863ac71
mptcp: push pending frames when subflow has free space

When multiple subflows are active, we can receive a
window update on subflow with no write space available.
MPTCP will try to push frames on such subflow and will
fail. Pending frames will be pushed only after receiving
a window update on a subflow with some wspace available.

Overall the above could lead to suboptimal aggregate
bandwidth usage.

Instead, we should try to push pending frames as soon as
the subflow reaches both conditions mentioned above.

We can finally enable self-tests with asymmetric links,
as the above makes them finally pass.

Fixes: 38198abae0de ("mptcp: keep track of advertised windows right edge")
Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/options.c
net/mptcp/protocol.c
net/mptcp/protocol.h
tools/testing/selftests/net/mptcp/simult_flows.sh