]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit89720f4768dcb3e4e75f8c72d7f1e4d6c09afe39
treec2ea27728fa7f2820875e10b83fddda132b6be2a
parentd994d9fb6df960abb7e1002b3e483e1212b89d4d
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