OSDN Git Service

mptcp: consolidate synack processing.
authorPaolo Abeni <pabeni@redhat.com>
Thu, 30 Apr 2020 13:01:51 +0000 (15:01 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Apr 2020 19:23:22 +0000 (12:23 -0700)
commit263e1201a2c324b60b15ecda5de9ebf1e7293e31
tree6c996b8bc10e5d5ca261b1239e0bb4685626c072
parent30724ccbfc8325cade4a2d36cd1f75b06341d9eb
mptcp: consolidate synack processing.

Currently the MPTCP code uses 2 hooks to process syn-ack
packets, mptcp_rcv_synsent() and the sk_rx_dst_set()
callback.

We can drop the first, moving the relevant code into the
latter, reducing the hooking into the TCP code. This is
also needed by the next patch.

v1 -> v2:
 - use local tcp sock ptr instead of casting the sk variable
   several times - DaveM

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/mptcp.h
net/ipv4/tcp_input.c
net/mptcp/options.c
net/mptcp/subflow.c