mptcp: basic sndbuf autotuning
authorPaolo Abeni <pabeni@redhat.com>
Mon, 14 Sep 2020 08:01:10 +0000 (10:01 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Sep 2020 20:28:02 +0000 (13:28 -0700)
commitda51aef5fe5b9ef389055f693472d4fb5a3f58f9
tree5b507c2926494c896091cda790e44168bec20dd6
parent6719331c2f736fba881f2ce85c8b0e37fe054c46
mptcp: basic sndbuf autotuning

Let the msk sendbuf track the size of the larger subflow's
send window, so that we ensure mptcp_sendmsg() does not
exceed MPTCP-level send window.

The update is performed just before try to send any data.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/protocol.c