netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] mptcp: simplify mptcp_accept()
@ 2020-03-12 15:13 Paolo Abeni
  2020-03-12 15:13 ` [PATCH net-next 1/2] mptcp: create msk early Paolo Abeni
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Paolo Abeni @ 2020-03-12 15:13 UTC (permalink / raw)
  To: netdev; +Cc: davem, Mat Martineau

Currently we allocate the MPTCP master socket at accept time.

The above makes mptcp_accept() quite complex, and requires checks is several
places for NULL MPTCP master socket.

These series simplify the MPTCP accept implementation, moving the master socket
allocation at syn-ack time, so that we drop unneeded checks with the follow-up
patch.

Note: patch 2/2 will conflict with net commit 2398e3991bda ("mptcp: always 
include dack if possible."). If the following will help, I can send a rebased
version of the series after that net is merged back into net-next.

Paolo Abeni (2):
  mptcp: create msk early
  mptcp: drop unneeded checks

 net/mptcp/options.c  |  2 +-
 net/mptcp/protocol.c | 83 ++++++++++++++++++++++++--------------------
 net/mptcp/protocol.h |  4 +--
 net/mptcp/subflow.c  | 50 ++++++++++++++------------
 net/mptcp/token.c    | 31 ++---------------
 5 files changed, 78 insertions(+), 92 deletions(-)

-- 
2.21.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-03-13 14:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-12 15:13 [PATCH net-next 0/2] mptcp: simplify mptcp_accept() Paolo Abeni
2020-03-12 15:13 ` [PATCH net-next 1/2] mptcp: create msk early Paolo Abeni
2020-03-12 15:13 ` [PATCH net-next 2/2] mptcp: drop unneeded checks Paolo Abeni
2020-03-13 14:09 ` [PATCH net-next 0/2] mptcp: simplify mptcp_accept() Paolo Abeni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).