Message ID | 20230123-upstream-net-next-pm-v4-v6-v1-0-43fac502bfbf@tessares.net |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp207565wrn; Wed, 25 Jan 2023 02:49:31 -0800 (PST) X-Google-Smtp-Source: AMrXdXvzJUnc9Ji1rgh/rmcf0kF5A48QNEpPjMRWfPkAN3wGR1a94kLGEirXcbXYO3liHG62dZwu X-Received: by 2002:a17:90a:355:b0:22b:aa69:ccc7 with SMTP id 21-20020a17090a035500b0022baa69ccc7mr20316772pjf.27.1674643771632; Wed, 25 Jan 2023 02:49:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674643771; cv=none; d=google.com; s=arc-20160816; b=BngaJpGgRbIT9wujCBCaRtEWfCHGtSayLgBB6e/zWsz1GApYwYoPHAkAfgcIy/+fY0 EjU5tpxgLZkZvbl46PoYncDwooRjl+p+gt5Eu749yNJ46nR7IvHBahiTcEVmfzO1/690 wJNnSJ+8PuQmc6cnJwACIdXjsbUaFQMUHQfxH0qhTPuLCgl8JCemJUepeD+f9DwIQDrY u5XCL04ujBY+VUU5d4N2E9OWePIsWuNqJhCYOAj8GATzu67/zBTZRtmGUvY+UfqIZHKi ENWIvGAomzRkd5JMcJfd8ozjekgzEFXU3W8AYCQtOcGswYmwGZZgFV3sld+2SmhVkXSk vdmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=Sm7cAXvuksIT8Vn2KQfM6U5yXB3a8DRF5yFqF7/IqD8=; b=Yi+pWb7wafkAGEfdS4l44umg3ACc+LOcO5jPjfZbzOPmSN06zDNDiyA7pWRsZP4qnq lNmVx77ZYQwstIKew+BROAIs70950EMLCWPPU2fvyHNOdw8/OjJjm78rkMXwqNh5DRZA 2eZJ9+5PusZm8qzawEcIETtl1zeyFO+4Y+mcQdhZNtzpYDJFVIhf4eGOQcBXzL2WCrhX dlSPYItPAK7g0RB/MYfqwtBGMdxEI22OlqkPrVC+WFY8U5NfmOAPhl4/CXtQVYMD7QWm /UmY+1ojhq8XMTNp0Ek7qYeqKzpRYWN4g/GSKW60NxXCuKx3dxIh7Oho46g7OGyxGsuc 2Mpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tessares.net header.s=google header.b=1DG9Q4Ja; 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=QUARANTINE sp=QUARANTINE 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 mu1-20020a17090b388100b00229bf39a1ecsi1992977pjb.76.2023.01.25.02.49.19; Wed, 25 Jan 2023 02:49:31 -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=1DG9Q4Ja; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=tessares.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235655AbjAYKsh (ORCPT <rfc822;rust.linux@gmail.com> + 99 others); Wed, 25 Jan 2023 05:48:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235685AbjAYKsg (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 25 Jan 2023 05:48:36 -0500 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8822842BD2 for <linux-kernel@vger.kernel.org>; Wed, 25 Jan 2023 02:48:05 -0800 (PST) Received: by mail-wm1-x333.google.com with SMTP id f12-20020a7bc8cc000000b003daf6b2f9b9so917959wml.3 for <linux-kernel@vger.kernel.org>; Wed, 25 Jan 2023 02:48:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tessares.net; s=google; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=Sm7cAXvuksIT8Vn2KQfM6U5yXB3a8DRF5yFqF7/IqD8=; b=1DG9Q4JaxhWmDSfrx9wk2S4ODUu5D6gqvoB6VO/OCaz2SOQSO3tjWY73kamLORPcBs 56QmJF4rzK2p74s4oX2uBD3waQUQ53Kixs4jk1ALWv+c5d9BHhh0ftllxk9dMguVzn5a B5XjxReIgyKyP0kQqfsJmKpnv49gQLWO/JicjGLQVJHavsgprJs7AW+l5VE1/9EJatep 88ftE+66RVdR4tra/hy7oWcjZijq5eln7VYfBbp5GVADqPcnwu85xD5UsnbvBdbBGtHQ EZtRJsFpD9FgH2TxCxiufaMmnJkqbY8ybwCJlDoi6g4v1rATIQkY/un3sGjVCBd9vFiu DeUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Sm7cAXvuksIT8Vn2KQfM6U5yXB3a8DRF5yFqF7/IqD8=; b=z+rJ3t08hxD07NKw4la7ZRfIgxQLJhGCVe/iIn/grV2a8I/fZ1+mJlCep2SGr1MTDx JA39AF0OJhwWMQ5EmqCf5n64NYSQU+kpol1dC8ng+7QOgz/DfIqu2Ih5nYHI4NIzHPFh 7F3qNSRk93FbCfDdn2CX/HZYwxuxjhOzUZ8AVSxS5KuWswhv5XJmg99zEXIO84uE+WY0 ae8lqJXRG/LJWy+lpz10hZXnfbDlVit8SMD3lxsiTvq1PEMe3AIjCwt0YMz1t0ZwzD7D 5aD7U3zXj4X83yi6eKDiWZOrPKC344n0NjKjU3UKEh374pZdhFZaaqEOCCMk3lcVU06I vSBQ== X-Gm-Message-State: AFqh2krsusGNB/wf0pfQiC9gocOa9DsRRacb6iEV6Nl69Nat3n8B3b1I RRdgZE28TkTBloUWpHfiH97p1g== X-Received: by 2002:a05:600c:a15:b0:3db:18a0:310f with SMTP id z21-20020a05600c0a1500b003db18a0310fmr25637661wmp.33.1674643679225; Wed, 25 Jan 2023 02:47:59 -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 r1-20020a05600c424100b003d9a86a13bfsm1423692wmm.28.2023.01.25.02.47.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Jan 2023 02:47:58 -0800 (PST) From: Matthieu Baerts <matthieu.baerts@tessares.net> Subject: [PATCH net-next 0/8] mptcp: add mixed v4/v6 support for the in-kernel PM Date: Wed, 25 Jan 2023 11:47:20 +0100 Message-Id: <20230123-upstream-net-next-pm-v4-v6-v1-0-43fac502bfbf@tessares.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIALgI0WMC/0WNwQqDMBBEf0X23IUkBpH+SulhY7d1D6ZhkwZB/ HdjofQwh8cwbzbIrMIZrt0GylWyvGMDe+lgmim+GOXRGJxxvbGux0/KRZkWjFxa1oJpweqxDhj sOPjRkg/GQBMEyoxBKU7zqfgNziopP2X9/t7+xX3fDwd82FWRAAAA To: Mat Martineau <mathew.j.martineau@linux.intel.com>, Matthieu Baerts <matthieu.baerts@tessares.net>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Shuah Khan <shuah@kernel.org> Cc: netdev@vger.kernel.org, mptcp@lists.linux.dev, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org X-Mailer: b4 0.12.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2147; i=matthieu.baerts@tessares.net; h=from:subject:message-id; bh=y7xt/jDxFXcJ15EgIkD8oBTqZDL9ojRU13M9eMUQTFQ=; b=owEBbQKS/ZANAwAIAfa3gk9CaaBzAcsmYgBj0QjdXadWm/alm36siF313JgJqm+QfrUf00BHhUMv Oqy+kBeJAjMEAAEIAB0WIQToy4X3aHcFem4n93r2t4JPQmmgcwUCY9EI3QAKCRD2t4JPQmmgc7g9D/ 49zFh8NUIeA1NRsjrUD0s0nvcXhkcm1uDs+xlatBCfkwwhyLVci2wWXKq9rEzynsV6Ff+IQe70UXwZ Bega11YJTkt84+t1DJCbQ8RW6m79vF3dETy7Huuv6yfSZjgtbaiv1rS/7Qy0dQSKkH3MOoHBSau9Gd CIx4MIY6OYi3Q2mn4wociPth1irrJ1bnU7YqWt9qtu1f3G8EaEPiBfYki7X6JPqi6dmJylb0Li5PZS /p2jUczI7ctJDWCGU3JTn42cgk5O6aKi5zqEKm2p6uLxdFhhd8x/Z36yLChfdO8dn5t28JHFqA5Z7K V4ybZ2x4yflm+GilYKxrnP9pn7ryn47k9Cumg2GPG7jT4E5LeEhvFIDjjFEMIDeFtVBdRi6VB3syG9 hS4Ig5Us92VM82fFDxav6yMOsqzppwe45+oC/j7nOTDcESeGaWY4w3LUOAnUxYC77peICUM3p3wcyn z2oWhpcgsNmF79QnfONrsxeEDSBVNoqZWMLmYlldc8MmTrmjMCxmOyxu9NGyN+l3WjR6mA+wJ5F1Sy cEeqBi6wXxuOrFbCjgJcu4+IFY0XC8GlJAViBH1rF9rYocoR+VwF4HoHLoZm6FXYmxFIWU8gDImogL CB/IGVehkyu/rQwkYp45hdw3OUoZpa/yyVhNpIpWUIHLsvwPnQX+Hk4Dp+3w== X-Developer-Key: i=matthieu.baerts@tessares.net; a=openpgp; fpr=E8CB85F76877057A6E27F77AF6B7824F4269A073 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=unavailable 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?1755991267236979119?= X-GMAIL-MSGID: =?utf-8?q?1755991267236979119?= |
Series |
mptcp: add mixed v4/v6 support for the in-kernel PM
|
|
Message
Matthieu Baerts
Jan. 25, 2023, 10:47 a.m. UTC
Before these patches, the in-kernel Path-Manager would not allow, for the same MPTCP connection, having a mix of subflows in v4 and v6. MPTCP's RFC 8684 doesn't forbid that and it is even recommended to do so as the path in v4 and v6 are likely different. Some networks are also v4 or v6 only, we cannot assume they all have both v4 and v6 support. Patch 1 then removes this artificial constraint in the in-kernel PM currently enforcing there are no mixed subflows in place, either in address announcement or in subflow creation areas. Patch 2 makes sure the sk_ipv6only attribute is also propagated to subflows, just in case a new PM wouldn't respect it. Some selftests have also been added for the in-kernel PM (patch 3). Patches 4 to 8 are just some cleanups and small improvements in the printed messages in the userspace PM. It is not linked to the rest but identified when working on a related patch modifying this selftest, already in -net: commit 4656d72c1efa ("selftests: mptcp: userspace: validate v4-v6 subflows mix") --- Matthieu Baerts (6): mptcp: propagate sk_ipv6only to subflows mptcp: userspace pm: use a single point of exit selftests: mptcp: userspace: print titles selftests: mptcp: userspace: refactor asserts selftests: mptcp: userspace: print error details if any selftests: mptcp: userspace: avoid read errors Paolo Abeni (2): mptcp: let the in-kernel PM use mixed IPv4 and IPv6 addresses selftests: mptcp: add test-cases for mixed v4/v6 subflows net/mptcp/pm_netlink.c | 58 ++++---- net/mptcp/pm_userspace.c | 5 +- net/mptcp/sockopt.c | 1 + tools/testing/selftests/net/mptcp/mptcp_join.sh | 53 ++++++-- tools/testing/selftests/net/mptcp/userspace_pm.sh | 153 +++++++++++++--------- 5 files changed, 171 insertions(+), 99 deletions(-) --- base-commit: 4373a023e0388fc19e27d37f61401bce6ff4c9d7 change-id: 20230123-upstream-net-next-pm-v4-v6-b186481a4b00 Best regards,
Comments
Hello: This series was applied to netdev/net-next.git (master) by Paolo Abeni <pabeni@redhat.com>: On Wed, 25 Jan 2023 11:47:20 +0100 you wrote: > Before these patches, the in-kernel Path-Manager would not allow, for > the same MPTCP connection, having a mix of subflows in v4 and v6. > > MPTCP's RFC 8684 doesn't forbid that and it is even recommended to do so > as the path in v4 and v6 are likely different. Some networks are also > v4 or v6 only, we cannot assume they all have both v4 and v6 support. > > [...] Here is the summary with links: - [net-next,1/8] mptcp: let the in-kernel PM use mixed IPv4 and IPv6 addresses https://git.kernel.org/netdev/net-next/c/b9d69db87fb7 - [net-next,2/8] mptcp: propagate sk_ipv6only to subflows https://git.kernel.org/netdev/net-next/c/7e9740e0e84e - [net-next,3/8] selftests: mptcp: add test-cases for mixed v4/v6 subflows https://git.kernel.org/netdev/net-next/c/ad3493746ebe - [net-next,4/8] mptcp: userspace pm: use a single point of exit https://git.kernel.org/netdev/net-next/c/40c71f763f87 - [net-next,5/8] selftests: mptcp: userspace: print titles https://git.kernel.org/netdev/net-next/c/f790ae03db33 - [net-next,6/8] selftests: mptcp: userspace: refactor asserts https://git.kernel.org/netdev/net-next/c/1c0b0ee2640b - [net-next,7/8] selftests: mptcp: userspace: print error details if any https://git.kernel.org/netdev/net-next/c/10d4273411be - [net-next,8/8] selftests: mptcp: userspace: avoid read errors https://git.kernel.org/netdev/net-next/c/8dbdf24f4e9e You are awesome, thank you!