netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/2] mptcp: simplify mptcp_accept()
@ 2020-03-13 15:52 Paolo Abeni
  2020-03-13 15:52 ` [PATCH net-next v2 1/2] mptcp: create msk early Paolo Abeni
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Paolo Abeni @ 2020-03-13 15:52 UTC (permalink / raw)
  To: netdev; +Cc: David S. Miller, 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.

v1 -> v2:
- rebased on top of 2398e3991bda7caa6b112a6f650fbab92f732b91

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

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

-- 
2.21.1


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

end of thread, other threads:[~2020-03-15  7:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-13 15:52 [PATCH net-next v2 0/2] mptcp: simplify mptcp_accept() Paolo Abeni
2020-03-13 15:52 ` [PATCH net-next v2 1/2] mptcp: create msk early Paolo Abeni
2020-03-13 16:08   ` Matthieu Baerts
2020-03-13 15:52 ` [PATCH net-next v2 2/2] mptcp: drop unneeded checks Paolo Abeni
2020-03-13 16:08   ` Matthieu Baerts
2020-03-15  7:19 ` [PATCH net-next v2 0/2] mptcp: simplify mptcp_accept() David Miller

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).