mptcp: cleanup mptcp_subflow_discard_data()
authorPaolo Abeni <pabeni@redhat.com>
Mon, 14 Sep 2020 08:01:13 +0000 (10:01 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Sep 2020 20:28:02 +0000 (13:28 -0700)
commit04e4cd4f7ca4600409a898fe0abc318372c4c1ab
treec2ea27728fa7f2820875e10b83fddda132b6be2a
parentab174ad8ef76276cadfdae98731d31797d265927
mptcp: cleanup mptcp_subflow_discard_data()

There is no need to use the tcp_read_sock(), we can
simply drop the skb. Additionally try to look at the
next buffer for in order data.

This both simplifies the code and avoid unneeded indirect
calls.

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/protocol.h
net/mptcp/subflow.c