]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: subflow: check parent mptcp socket on subflow state change
authorFlorian Westphal <fw@strlen.de>
Thu, 2 Apr 2020 11:44:52 +0000 (13:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Apr 2020 13:59:21 +0000 (06:59 -0700)
commitedbcbb05d0a009daba6db7c89e55866eddf12cf1
tree770b4daa78779200fc64f1538caea67491e4810b
parent90e3b9e8f495f19e10ca27fed1338330ab3d12fb
mptcp: subflow: check parent mptcp socket on subflow state change

This is needed at least until proper MPTCP-Level fin/reset
signalling gets added:

We wake parent when a subflow changes, but we should do this only
when all subflows have closed, not just one.

Schedule the mptcp worker and tell it to check eof state on all
subflows.

Only flag mptcp socket as closed and wake userspace processes blocking
in poll if all subflows have closed.

Co-developed-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/protocol.c
net/mptcp/protocol.h
net/mptcp/subflow.c