mptcp: add and use mptcp_data_ready helper
authorFlorian Westphal <fw@strlen.de>
Wed, 26 Feb 2020 09:14:46 +0000 (10:14 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Feb 2020 04:46:26 +0000 (20:46 -0800)
commit101f6f851ee6268a46e2dcec244a812fd9a9195a
tree2938e591ee284f9e18dd9d7d194fe39921249c98
parent5cd129dd5e45b9c3c61ec373c3ec1d60925dc65d
mptcp: add and use mptcp_data_ready helper

allows us to schedule the work queue to drain the ssk receive queue in
a followup patch.

This is needed to avoid sending all-to-pessimistic mptcp-level
acknowledgements.  At this time, the ack_seq is what was last read by
userspace instead of the highest in-sequence number queued for reading.

Signed-off-by: Florian Westphal <fw@strlen.de>
Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/protocol.c
net/mptcp/protocol.h
net/mptcp/subflow.c