Message ID | 20230608-upstream-net-next-20230608-mptcp-unify-pm-interfaces-v1-0-b301717c9ff5@tessares.net |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6358:3046:b0:115:7a1d:dabb with SMTP id p6csp326553rwl; Thu, 8 Jun 2023 06:24:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5r0lKvI3SP3x3Jr+QCZlh+bvTvfKUu8aHV9a0I1D+Mr+f/sNb8sGhNbVX6ZX6BlBmif5TZ X-Received: by 2002:a17:902:b098:b0:1af:fd5c:d21f with SMTP id p24-20020a170902b09800b001affd5cd21fmr3690994plr.17.1686230642447; Thu, 08 Jun 2023 06:24:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686230642; cv=none; d=google.com; s=arc-20160816; b=B5Ps3SvIKRGQF5QmRPOS1UcLsbgGFedLf5Dct+ZVNvmiP8PoHb2QmVIoXR2sRnw8J6 JRiTPaY5vywa8Dz7bhYAidrDBYcVzcqxq+vK63IwHp05++MK1LxfdW68lJ92W0q1Qf8b +CP0x9OF7Xfnn9leuP8B1ZUjrMWFgcothqyyuJ5rg06kHjPoKJqYHNVl4EgQdfWIML1z HYZsCiBomhKpqYUkFJNEWYYsGl5MW/MARzBljNdX5qQDTnL8bYSZgS0Koz3ncTnTppJR yoR76lJU5Wog67gg4Iez40kw5M2Rg3gxqc87ulzaroeyGDw/FEaEB0mJjnZZ30/W34uu ch3w== 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=JrLkSqBXuXFaPtOlLMxDD4QQOh/SbBZYNkY7RLKJl40=; b=rtYiSD78uKNFGUfxw8T1TDqIz2JCuSgY75qdteFmNpdFambUWavbZaSmNA8m7sUbcQ SXyAZSxpbrHiILR7ouMzkDJR9pYyCkuQzcsVcuEyB3E5AIIMpw57oVXVWjxTnb8OsDLQ 1l8YBFd8oP7Pp14hD/VBbHgGKOpIaq3NgbVY8Tkd6zyw343bny9XkCPwtODPc2IpWATK k0oZVKg0NIv4jtdwud6BR9zFTjgix64KoAGLoBH+yNx2873g8pL3oRIPKyk3CMj+UNHA yB3lluTlYG+da5YNFejM4PFg0nX3EOGAj7or+qW6wJerpia2LBKSiOGvrQiMyrCElnRi r43Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tessares.net header.s=google header.b=Yg8gZkNT; 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=REJECT sp=REJECT 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 z1-20020a170903018100b001a2513b8e14si1079080plg.84.2023.06.08.06.23.47; Thu, 08 Jun 2023 06:24:02 -0700 (PDT) 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=Yg8gZkNT; 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=REJECT sp=REJECT dis=NONE) header.from=tessares.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235291AbjFHNVO (ORCPT <rfc822;literming00@gmail.com> + 99 others); Thu, 8 Jun 2023 09:21:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232971AbjFHNVN (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 8 Jun 2023 09:21:13 -0400 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4DB02121 for <linux-kernel@vger.kernel.org>; Thu, 8 Jun 2023 06:21:11 -0700 (PDT) Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-30aef0499b6so431243f8f.1 for <linux-kernel@vger.kernel.org>; Thu, 08 Jun 2023 06:21:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tessares.net; s=google; t=1686230470; x=1688822470; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=JrLkSqBXuXFaPtOlLMxDD4QQOh/SbBZYNkY7RLKJl40=; b=Yg8gZkNTI+QaGC7zmMGDlRLZgD+hwa9fiSskHeCXWMpONvKCeHrMare89xI66O5SLi qK+YB2/pCdU2ZcvhUwk/heyho8yvRwZT3jCm/sW9Zvmyu/Axl2MVVJtDNK23i88wzdOT ES0wozDmJ/BiEVMCeoMnk/gi+EiFTYBlT0osi/kW/uICdpFx8gH+qKC5+ERA4tZQrQzf eTUeXdpalDjJSGGq0a1bSHlmQ1NHGUAZnhAmBwxlUSjVi/XvltuABc7Pf/hPDMPf35+Q Y9V9Mgtaaii6YKY/VmUhattjBomXD10zXYdruNnycw+7Pe137H6WvT/12qe5id1OnlsD vXQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686230470; x=1688822470; 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=JrLkSqBXuXFaPtOlLMxDD4QQOh/SbBZYNkY7RLKJl40=; b=NJDQZMpD7sCoylRjbxamsN9f4r0Sc/exq2XHMiphdpxBX6YlZQR7dhR5vrOg8gmdxj EARei1qKbtxGIpaT8oXArEtEEEvuoGe5mojt6KVj1Nm4HH/0kebfjxhV6bUaZcAvGqBB b/3eV7SLk5HaBtd6U+hHFh+AG96HxWZZiK6bIniijRyTIX0weXjcfIp+cERWg76Rgzhm vUSIMkb/u1Pr16S0FBcoPAdgbhNkdM2UmiB6jvTl4LxNGUY4vNQKWP2lVTibL6MFJyPh EYHCKWI/5IyqoyVzeNd70Iba3jLd5H2NP7tvWxy6r1WhOYSTd3JL8QCY8ls2LlPqrV+7 d47w== X-Gm-Message-State: AC+VfDydqTE5PXp+QEOFxmSOUDSh87TvlR5GQSTOlxgw3OwBhDIkZy7E HhCyl2in8mpb7+JQfQXYFRtSvg== X-Received: by 2002:adf:edcb:0:b0:309:41d8:eec4 with SMTP id v11-20020adfedcb000000b0030941d8eec4mr7124852wro.39.1686230470319; Thu, 08 Jun 2023 06:21:10 -0700 (PDT) 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 16-20020a05600c021000b003f7f1b3aff1sm5001100wmi.26.2023.06.08.06.21.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jun 2023 06:21:10 -0700 (PDT) From: Matthieu Baerts <matthieu.baerts@tessares.net> Subject: [PATCH net-next 0/4] mptcp: unify PM interfaces Date: Thu, 08 Jun 2023 15:20:48 +0200 Message-Id: <20230608-upstream-net-next-20230608-mptcp-unify-pm-interfaces-v1-0-b301717c9ff5@tessares.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIALDVgWQC/z2OzQ6CMBCEX4Xs2Y0VK/68ivFQylb2wNp0i8EQ3 t1igoc5fJnkm5lBKTEp3KoZEr1Z+SUFDrsKfO/kSchdYahNfTSNueAYNSdyAwrlkinjvxpi9hF H4fDBOCBLphScJ0V7PYdw6sg2lqCoW6eEbXLi+1We95t1LWOiwNPv0x22FXgsyxfvJHDsrQAAA A== To: mptcp@lists.linux.dev, Mat Martineau <martineau@kernel.org>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com> Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Geliang Tang <geliang.tang@suse.com>, Matthieu Baerts <matthieu.baerts@tessares.net> X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1112; i=matthieu.baerts@tessares.net; h=from:subject:message-id; bh=PksWG9xpjpNR6taGD8lcKubOv6ngqDUSLnkTPjYnXCc=; b=owEBbQKS/ZANAwAIAfa3gk9CaaBzAcsmYgBkgdXFQUslVvsp15U+xKqFpBZ7y2jt7uScqvHmy fcsE86kucmJAjMEAAEIAB0WIQToy4X3aHcFem4n93r2t4JPQmmgcwUCZIHVxQAKCRD2t4JPQmmg czyqD/9HRQx7w5GuMDuHNwmVsIBetoSufo+y5mLulkSMoxJtMUL/PDvEJL5s00rHTqFdjiIGpzK hDk065KHpY7AeVH8GZX6IhkyMTYkN/XOuAc7hO9gZrh8s1AXxNb2MidpHd6Bphaq706NvaBI1U6 kmewaDEdPjCcQJG456ORjGdqsnxBCZpqjC1tP6mMk1E7+HiINBGPh9Qm/3wGsNArLz3Ust64X6E 4DLTI34hNnTyIIkhTdDWXhfZmleIRzlRVkffF6xieuhboYVLD15n78vjWmUdLWI2hE+d/Et7aB/ HfaDrYyeaigUUKT4rC+UXbJk2dgjsFteWj2FJr4/gUyh4bmpzAR+30vsav/SqMjDjorb8FVMoEF iHwum99/9D2IXnSzlt4l62H3BOqXClacc0nTUCypurP/L71gF07FMpW120avJrUqIlhi8ICaFWQ +79mjUuj0v7UWG3DoBmIdmIuv2/ZkMDWkSlvCIYUQTJQpMVWrYDT/xLrG6+LZKm6z0rYozFyddW gT1Q+f6UcwMjxN8x+ag/vgQZad7Q3GyZTGeu145qjgAZ6mI9ncZQdyJvtlZNpcFSbKHWDXCephp 6Om4+lAmSFPDwk8VJ+be0PyY935h8dzFX1WFvdJOK9FG5lrwfw22CAa1tXVpVtuVSM7egc3NzyZ dEhZY/hzSWreDjw== 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,T_SCC_BODY_TEXT_LINE 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?1768140981931859683?= X-GMAIL-MSGID: =?utf-8?q?1768140981931859683?= |
Series | mptcp: unify PM interfaces | |
Message
Matthieu Baerts
June 8, 2023, 1:20 p.m. UTC
These patches from Geliang better isolate the two MPTCP path-managers by
avoiding calling userspace PM functions from the in-kernel PM. Instead,
new functions declared in pm.c directly dispatch to the right PM.
In addition to have a clearer code, this also avoids a bit of duplicated
checks.
This is a refactoring, there is no behaviour change intended here.
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
---
Geliang Tang (4):
mptcp: export local_address
mptcp: unify pm get_local_id interfaces
mptcp: unify pm get_flags_and_ifindex_by_id
mptcp: unify pm set_flags interfaces
net/mptcp/pm.c | 41 ++++++++++++++-
net/mptcp/pm_netlink.c | 132 ++++++++++++++++++++---------------------------
net/mptcp/pm_userspace.c | 3 --
net/mptcp/protocol.h | 9 +++-
4 files changed, 103 insertions(+), 82 deletions(-)
---
base-commit: 4a56212774acf71a7356026fb11b78228a7ad24d
change-id: 20230608-upstream-net-next-20230608-mptcp-unify-pm-interfaces-497ff5de464e
Best regards,
Comments
Hello: This series was applied to netdev/net-next.git (main) by Jakub Kicinski <kuba@kernel.org>: On Thu, 08 Jun 2023 15:20:48 +0200 you wrote: > These patches from Geliang better isolate the two MPTCP path-managers by > avoiding calling userspace PM functions from the in-kernel PM. Instead, > new functions declared in pm.c directly dispatch to the right PM. > > In addition to have a clearer code, this also avoids a bit of duplicated > checks. > > [...] Here is the summary with links: - [net-next,1/4] mptcp: export local_address https://git.kernel.org/netdev/net-next/c/dc886bce753c - [net-next,2/4] mptcp: unify pm get_local_id interfaces https://git.kernel.org/netdev/net-next/c/9bbec87ecfe8 - [net-next,3/4] mptcp: unify pm get_flags_and_ifindex_by_id https://git.kernel.org/netdev/net-next/c/f40be0db0b76 - [net-next,4/4] mptcp: unify pm set_flags interfaces (no matching commit) You are awesome, thank you!