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)
commit59832e246515ab6a4f5aa878073e6f415aa35166
tree770b4daa78779200fc64f1538caea67491e4810b
parent0b4f33def7bbde1ce2fea05f116639270e7acdc7
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