Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp681959rwd; Thu, 8 Jun 2023 06:28:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6+sllGcqnxiCa1jZZhxt/IlPMsqoOZcfP3MqtgHcxxvwKKEDZFADqyfyC7m3p/wEmAbmNi X-Received: by 2002:a05:6a20:7d87:b0:10e:d4fb:b034 with SMTP id v7-20020a056a207d8700b0010ed4fbb034mr3596539pzj.28.1686230904442; Thu, 08 Jun 2023 06:28:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686230904; cv=none; d=google.com; s=arc-20160816; b=neXjAvk2UPpEbNouduwv7aXKyOthJWSt9v0jQIBX4GYP8PLYBRleJdOtDsSqgRIIyj 7mqleIL5tNhCGAnrcYlPXMfCDtzwbN5I3OhYmnUnURim5tCYriY8DKunWf0vuMqM22kr ELGd6ATth6exCVYqjFMZ28V426PRRMt7xndWgWkoMhG2fPAJoV0C3rx2iZqBLhRfirQS NotPKDkuIEaIcBih8NcqewSelA2JoxONKJYkjZlc7gvGzP7YqvrIRrcjh/1tBqYF/goU xBrgDHSGGgWsuUmva32d6kUJE902Pb45FqTup7UZ2MKkGx37OV3xsa7vdNjkoxKU+fVu Inng== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z1-20020a63c041000000b00543cbd73c02si964130pgi.409.2023.06.08.06.28.11; Thu, 08 Jun 2023 06:28:24 -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 S235219AbjFHNVO (ORCPT + 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 ); 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 ; Thu, 8 Jun 2023 06:21:11 -0700 (PDT) Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-30aef0499b6so431243f8f.1 for ; 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 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 , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Geliang Tang , Matthieu Baerts 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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, -- Matthieu Baerts