mptcp: set data_ready status bit in subflow_check_data_avail()
authorPaolo Abeni <pabeni@redhat.com>
Mon, 14 Sep 2020 08:01:08 +0000 (10:01 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Sep 2020 20:28:02 +0000 (13:28 -0700)
commit47bebdf365ade17534f6616dc228d347085f4501
treea2d69994a872f5906808d65d86d97ba1d08b3827
parent63561a403c7c89d59205401db14fb444c6535cef
mptcp: set data_ready status bit in subflow_check_data_avail()

This simplify mptcp_subflow_data_available() and will
made follow-up patches simpler.

Additionally remove the unneeded checks on subflow copied_seq:
we always whole skbs out of subflows.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/subflow.c