]> 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)
commit56be349a1f7fc18bb8482e45699b35074a07bf5d
tree770b4daa78779200fc64f1538caea67491e4810b
parentdbdbb456014329efbc3ad9612c543607601fe2eb
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