]> 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)
commitcf495c1dc874aa6bfe96031b3f253a464bf31d18
tree1cf8f58d821e69d0c6ce8f61f2a50682d2c824b6
parentb3e7fb93078925ae52bbbbd0c52d01c09642ea0f
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: 09a6df1d8754 ("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