]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: add subflow write space signalling and mptcp_poll
authorFlorian Westphal <fw@strlen.de>
Wed, 22 Jan 2020 00:56:25 +0000 (16:56 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Jan 2020 12:44:08 +0000 (13:44 +0100)
commit5ea78a1533fa29bd7473c4bb16bbff0e1433c42b
treea8b22813609ac268086d3a4b65260711f97978ce
parent70105a1bbb51bcff228e6073a3a4e5192d5a7dde
mptcp: add subflow write space signalling and mptcp_poll

Add new SEND_SPACE flag to indicate that a subflow has enough space to
accept more data for transmission.

It gets cleared at the end of mptcp_sendmsg() in case ssk has run
below the free watermark.

It is (re-set) from the wspace callback.

This allows us to use msk->flags to determine the poll mask.

Co-developed-by: Peter Krystad <peter.krystad@linux.intel.com>
Signed-off-by: Peter Krystad <peter.krystad@linux.intel.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Christoph Paasch <cpaasch@apple.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/protocol.c
net/mptcp/protocol.h
net/mptcp/subflow.c