Message ID | 20221125222958.958636-1-matthieu.baerts@tessares.net |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp4325920wrr; Fri, 25 Nov 2022 14:32:17 -0800 (PST) X-Google-Smtp-Source: AA0mqf7Bnem0RSmVEHaVS+BojCthSuf2c0CvZpDTaNhra8D89nYVwnjWoPITz0cNbqG6Auc2eYBY X-Received: by 2002:a17:902:7006:b0:181:b55a:f987 with SMTP id y6-20020a170902700600b00181b55af987mr20728365plk.67.1669415536924; Fri, 25 Nov 2022 14:32:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669415536; cv=none; d=google.com; s=arc-20160816; b=hpl6VXu01dCFLT0DRzFyzfBceJXcMIVx5jdMVOGJ4EiCZZ5RE+8835mVYkfXFQQW9x T0T7MltxXBksW1WArtRL/gro8FzKb/OxviY54Xl4q8HBwVJ21d657Mc1NP55JTSeheaE hljj0jnayEyCOiS4mI+9eo+jkQXciR3Q6oBFp6G79uJ+G8DY/8KGHnB/ujlJMVR2DwQ5 4PlSWZO2WUHSoXGL+/eThTfM7qHGjZKh8seQUaKbSsEPpTFmJYklS56cjkQmuJEJG1JI 9t/Desc5hnu8FaTGb0z8bDBPhbQeS2PhmvcVlZI4brHsay6DLICt3IV3q0q9+d2TNbJn VtsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=/lfe7NcgAftfCbfY2/+Z4pAkfVrRZUU2cO+H0igoqlA=; b=hm0BwFuhPt7OAQv287Zy5xdItXSB8XQvXF4dO4ytGbrDfkMg59JFisHQ245rAXE0M9 zWylSASw14W5c6xcHHggDujwJ6FZ3D9mWhq8YQ45MfgsBNbJe2EN9AWCIbZcmJRxp1CZ eMWRTXpXW5W9SuSJftpcWC9JKQYHVWattx/uRHSJVHo+jfq0PKB5MxOg07CKdTRp5dYn r1+ppM016XutylZgs+70i856YeJk0rLc4MeycXcZMF8INxrycCRaJsj7cvWbAnRSHJAg 5cPkuZcZ9abrZE2JX+A7luXIP58q4uSVzcCaSkszeKSwgKXWhIsjVbRIzBbLBb7q1s/A YpUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tessares.net header.s=google header.b=7FzjGwCi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tessares.net Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x1-20020a170902ec8100b00186a185131dsi5978639plg.444.2022.11.25.14.32.04; Fri, 25 Nov 2022 14:32:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@tessares.net header.s=google header.b=7FzjGwCi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tessares.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229813AbiKYWaY (ORCPT <rfc822;zxc52fgh@gmail.com> + 99 others); Fri, 25 Nov 2022 17:30:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229454AbiKYWaW (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 25 Nov 2022 17:30:22 -0500 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6F062E9E0 for <linux-kernel@vger.kernel.org>; Fri, 25 Nov 2022 14:30:20 -0800 (PST) Received: by mail-ed1-x52b.google.com with SMTP id v8so8062538edi.3 for <linux-kernel@vger.kernel.org>; Fri, 25 Nov 2022 14:30:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tessares.net; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=/lfe7NcgAftfCbfY2/+Z4pAkfVrRZUU2cO+H0igoqlA=; b=7FzjGwCiJNJVId0pUks3IuSTjdAMDw/5uXCGz//3wbe+aLq/LZkraFTPq+18Iqy8f+ CAVozAtbugIdxu88+z6SZt3bmZRfgpoeY2+CfsQsBW3uw1dbpoPZTSya72tcg61Zp4Yz MEPWXVkwFTLGVCxst/lDCPkehzZk5zczUMp7euaQlpBLGQDL0hDDDINkWnD6arSwHjDx KZe7Q3wXtmnB9mRA+gi5eoFCbv7gFJ7/xXP4mT3AP4LuiVTP7obGpqCSjYh9gGg31rRx bTOl5+gcVNvCOUQp/opbKTBlY2OFU51UNYpeOSUbTDLjfcpmey7BW0Vljjbs9AfGHspU SARQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/lfe7NcgAftfCbfY2/+Z4pAkfVrRZUU2cO+H0igoqlA=; b=nBEbxhCghyLuu0DValfe+o4YsbnazvLTHLwez7Ag9lsQauXYbkADBkZ0k22MWVW7Uj uUXfFZda7fQREjiXNNQVP4J0/EHgjTOjH/inJ0Eswdvq2OiXJi6M9ptHoEYav0ZkdR/+ L2rxzD1qY22+ws/HiMqipe35sLP8AbVu0ZqgWq13x0nQ/OxzivuS3285L4vYd7ESZG+x QAJ82OpZEjWvyyFbUVrqeX9XAkD7mjO9LzOxqES7FOHsmGz+6lzQefo+yIGUUjuLXs/2 yEd6QRjV4QnHWEVtv5Xe3XVepFQpaJ4ok6X/FnHCtF7aMAWdS7v7R/E3u3oT3uiVRMYc fmHg== X-Gm-Message-State: ANoB5ploHDnLNv0mTIuoJ56kHugw8wMWFxLvry+YtP5X2iwm/9DFgmQk ODNXyW8qM1xgKgrXJlDqoRPv8g== X-Received: by 2002:a05:6402:5c7:b0:469:6e8f:74c1 with SMTP id n7-20020a05640205c700b004696e8f74c1mr19895454edx.334.1669415419190; Fri, 25 Nov 2022 14:30:19 -0800 (PST) Received: from vdi08.nix.tessares.net (static.219.156.76.144.clients.your-server.de. [144.76.156.219]) by smtp.gmail.com with ESMTPSA id q1-20020a056402248100b0046267f8150csm2254612eda.19.2022.11.25.14.30.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Nov 2022 14:30:18 -0800 (PST) From: Matthieu Baerts <matthieu.baerts@tessares.net> To: "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Mat Martineau <mathew.j.martineau@linux.intel.com>, Matthieu Baerts <matthieu.baerts@tessares.net>, Paolo Abeni <pabeni@redhat.com>, Shuah Khan <shuah@kernel.org> Cc: Benjamin Hesmans <benjamin.hesmans@tessares.net>, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, mptcp@lists.linux.dev, netdev@vger.kernel.org Subject: [PATCH net-next 0/8] mptcp: MSG_FASTOPEN and TFO listener side support Date: Fri, 25 Nov 2022 23:29:46 +0100 Message-Id: <20221125222958.958636-1-matthieu.baerts@tessares.net> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2144; i=matthieu.baerts@tessares.net; h=from:subject; bh=/zzbai6dUt499JGTzQ7EvmldP8hH2rMm7tWR7FtcNHY=; b=owEBbQKS/ZANAwAIAfa3gk9CaaBzAcsmYgBjgUHP3odjVCF44gMniUSK742ym4dsZtaly1a5iwCc FH/sZh6JAjMEAAEIAB0WIQToy4X3aHcFem4n93r2t4JPQmmgcwUCY4FBzwAKCRD2t4JPQmmgc4AgD/ 9DDOGjkr+5Wmxj4SWdYT43p//sr3oSXjQ2BycD/2oU/9vaHX0oS66ZS1zlrHRX5eTvWTvrx52OsQUn dPITVA4VCiU8KuNrys1OOjMJ1Lhmc5GrhEXujArJiqlMzCinR/g4YvTClJnCdHtx43gsrC7n7Ipp6Q yuocyEcoNVPLVIvpDqDbkIGjC0iYuMbBE/X4HF1r8/EnMNHC3TWbtoYGjqDpRKvs8hOAHeXdvZMmxe Graz1JQuoSCj3rsZBy726G8sGveOYkwcKstbTayfW5X/B8hIG4h0sF6N5pRwDR1L+WnpytQ/IRPBLJ gC7c06L5RN+DkzrQ2o+WF2LPBVDm9ZlbbGIQz04c/EwDR8bXfNMG5RBVwTuCds4RDuXf7n/KrMQIMR vF/0Zm4qJO9rs6PzJ6d3PcW/hP8AmmPrmuSyVmltFVmWSvcV+nT4JryyqgK3MbXRy1OmE+7oZtzkwg WZaAYLQUI0wqZ9FB2ewIdGcvULVhwjo+N9lOx0vny3H+7dJxoid3QgpGZnzLjYKsXP5Ktj/cKCqepr wO0rMej6wXKqtMLaER8mVT5Rjm8wzaJNiaVH2D8Sq7nF8BGjb+BlSFD+mZy7vvf3T0lJSupd5lz1S9 bkuc/p9WoY5PocljH1c4FM5mPGPwaAI3SAGFPAt7FicEtbh284ft0Gs/R+HA== X-Developer-Key: i=matthieu.baerts@tessares.net; a=openpgp; fpr=E8CB85F76877057A6E27F77AF6B7824F4269A073 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750509065819878980?= X-GMAIL-MSGID: =?utf-8?q?1750509065819878980?= |
Series |
mptcp: MSG_FASTOPEN and TFO listener side support
|
|
Message
Matthieu Baerts
Nov. 25, 2022, 10:29 p.m. UTC
Before this series, only the initiator of a connection was able to combine both TCP FastOpen and MPTCP when using TCP_FASTOPEN_CONNECT socket option. These new patches here add (in theory) the full support of TFO with MPTCP, which means: - MSG_FASTOPEN sendmsg flag support (patch 1/8) - TFO support for the listener side (patches 2-5/8) - TCP_FASTOPEN socket option (patch 6/8) - TCP_FASTOPEN_KEY socket option (patch 7/8) To support TFO for the server side, a few preparation patches are needed (patches 2 to 5/8). Some of them were inspired by a previous work from Benjamin Hesmans. Note that TFO support with MPTCP has been validated with selftests (patch 8/8) but also with Packetdrill tests running with a modified but still very WIP version supporting MPTCP. Both the modified tool and the tests are available online: https://github.com/multipath-tcp/packetdrill/ Dmytro Shytyi (5): mptcp: add MSG_FASTOPEN sendmsg flag support mptcp: implement delayed seq generation for passive fastopen mptcp: add subflow_v(4,6)_send_synack() mptcp: add TCP_FASTOPEN sock option selftests: mptcp: mptfo Initiator/Listener Matthieu Baerts (1): mptcp: add support for TCP_FASTOPEN_KEY sockopt Paolo Abeni (2): mptcp: track accurately the incoming MPC suboption type mptcp: consolidate initial ack seq generation net/mptcp/Makefile | 2 +- net/mptcp/fastopen.c | 73 ++++++++ net/mptcp/options.c | 25 ++- net/mptcp/protocol.c | 39 +--- net/mptcp/protocol.h | 28 ++- net/mptcp/sockopt.c | 9 +- net/mptcp/subflow.c | 105 ++++++++--- .../selftests/net/mptcp/mptcp_connect.c | 171 +++++++++++++----- .../selftests/net/mptcp/mptcp_connect.sh | 21 +++ 9 files changed, 358 insertions(+), 115 deletions(-) create mode 100644 net/mptcp/fastopen.c Cc: Benjamin Hesmans <benjamin.hesmans@tessares.net> base-commit: a6e3d86ece0b42a571a11055ace5c3148cb7ce76
Comments
Hello: This series was applied to netdev/net-next.git (master) by Jakub Kicinski <kuba@kernel.org>: On Fri, 25 Nov 2022 23:29:46 +0100 you wrote: > Before this series, only the initiator of a connection was able to combine both > TCP FastOpen and MPTCP when using TCP_FASTOPEN_CONNECT socket option. > > These new patches here add (in theory) the full support of TFO with MPTCP, which > means: > > - MSG_FASTOPEN sendmsg flag support (patch 1/8) > - TFO support for the listener side (patches 2-5/8) > - TCP_FASTOPEN socket option (patch 6/8) > - TCP_FASTOPEN_KEY socket option (patch 7/8) > > [...] Here is the summary with links: - [net-next,1/8] mptcp: add MSG_FASTOPEN sendmsg flag support https://git.kernel.org/netdev/net-next/c/1e777f39b4d7 - [net-next,2/8] mptcp: track accurately the incoming MPC suboption type https://git.kernel.org/netdev/net-next/c/fe33d3862677 - [net-next,3/8] mptcp: consolidate initial ack seq generation https://git.kernel.org/netdev/net-next/c/b3ea6b272d79 - [net-next,4/8] mptcp: implement delayed seq generation for passive fastopen https://git.kernel.org/netdev/net-next/c/dfc8d0603033 - [net-next,5/8] mptcp: add subflow_v(4,6)_send_synack() https://git.kernel.org/netdev/net-next/c/36b122baf6a8 - [net-next,6/8] mptcp: add TCP_FASTOPEN sock option https://git.kernel.org/netdev/net-next/c/4ffb0a02346c - [net-next,7/8] mptcp: add support for TCP_FASTOPEN_KEY sockopt https://git.kernel.org/netdev/net-next/c/cb99816cb59d - [net-next,8/8] selftests: mptcp: mptfo Initiator/Listener https://git.kernel.org/netdev/net-next/c/ca7ae8916043 You are awesome, thank you!