Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp359456rdg; Tue, 10 Oct 2023 12:22:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFvymWTo9wKw7Q0anboIT/E+HYV4wit9rOFvAaL+vqmdmztBS8cUlp2qBV6M3/IBXMAUTIx X-Received: by 2002:a17:90a:8382:b0:268:ca76:64a with SMTP id i2-20020a17090a838200b00268ca76064amr15948640pjn.49.1696965749116; Tue, 10 Oct 2023 12:22:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696965749; cv=none; d=google.com; s=arc-20160816; b=D0gQO+TglsliDo1ZMv2yiHIODF+o8IiMyMs7na3gMuoSdQGgg1wimyh49QnJiXnYYN uvlLQZexo6qUGOB0DOkgoEFadbx8nJHssgrP2XjZi8M4J7IWUj/zGg5M0ib8WaTCwliX XpO7hSRJT/EKr2s0gxMUQiN6XEVG4zZZdRnKTcUTd+hzBBgLw4qqZhJ94ab+s5qxB1s3 zR95LZ2vc6bXZqmAGFHRbmCona03RFTMvBigasCyBHHmIWI9JubWXTO8ktCWodslS/Dg IGwDNg7ant2wg7jF2Q7/jFsKEORdZFp7SRcvWDhGVN3juztaiW5QXYCKq4+H4QYwjLv6 Jghw== 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=2kp23865xIjQ+i4HxrvGE4nlDZey1rnIgPn2Eif+Jo8=; fh=CMthp1ao86x1aG9RPV72P83kOX00N/q60qpwDQNh1po=; b=OVZNMSIpasFTXgMaZ7LpM0EUfMgQcIXwBtDiBSbpA2iYfuahpI8ZDwcpGRFO/vWdSX ljAfFFSMn4Jqrhr8+whM9oLOwNLlsec0/4DSqWgotVasopXZm5BE1OaTjrKYtb15wQur kgCgoN5KLPOLNj0WSEXs/NjY2OoTnmqXtWnVpGg1u9W3pofQQBmuHXtn+ZVxLOK0+hvz oVeLiI2cyW8QG8lOrRLx72z5U2ECxkXCsV8OSUEFYWIpugAOIK2JG4Lp8QLF8w+ME+DF qjk5aNqXV12XJL2bNUpI9VjYvo7aQdzf2CZqCmxnoYX08qsj4TjgsZHAZiPHrI1BTMk+ 51sA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ViCzO3gd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id s4-20020a17090aad8400b00274d3f62044si2833728pjq.111.2023.10.10.12.22.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 12:22:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ViCzO3gd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 5A33280A9F4C; Tue, 10 Oct 2023 12:22:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233759AbjJJTWC (ORCPT + 99 others); Tue, 10 Oct 2023 15:22:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230195AbjJJTWB (ORCPT ); Tue, 10 Oct 2023 15:22:01 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBB0294 for ; Tue, 10 Oct 2023 12:22:00 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1F1F4C433C8; Tue, 10 Oct 2023 19:21:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696965720; bh=ugelAu7aQN103TVLeesZ/iaTBhc5Kz1J11t+K2izwI4=; h=From:Subject:Date:To:Cc:From; b=ViCzO3gdYy9ptZMiCueqtNcKs+W7WUaj1/K3NcTqERyRciMV9hNZVxX75eAgkqDVG ix7Zrxjgb9Qb2qeEur7SCfnfeIfr0Gzb2jJDrIQxEbxpUGO5/YsYq4vHO+yO+hWIUh bL05/jaZ448uhsCb/MUOLtyXHxT/Ti66dzTRU4SxCz6U2cnyZPN1/KYSPtKeVJH+8r Nh8edgN166Fr+5k+tX96ln1StsnfzYQLWDCN6wPiDNjgcFLKPrVoNC1RNAoquLePN7 K76gp5ja3VqPX4fsQ1/e1/KwuJNJpUDwKROZ9q5Xro+I76o688IC5XgoYmeOViS1Ww n6kZhJhZ9ntUQ== From: Matthieu Baerts Subject: [PATCH net-next 0/6] mptcp: convert Netlink code to use YAML spec Date: Tue, 10 Oct 2023 21:21:41 +0200 Message-Id: <20231010-upstream-net-next-20231006-mptcp-ynl-v1-0-18dd117e8f50@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAEWkJWUC/5WNwQqDMBBEf0X23C0bbSvpyf8oHqyuGqoxbFJRx H9vENp7D3MYHjNvA89i2MM92UB4Nt5MNhZ1SqDuK9sxmiZ2SCnNFNEN384H4WpEyyFmCfhDowu 1w9UOSE1Wa/1U3OQa4pUTbs1yaB7wHUIZSW98mGQ9/LM6+H+qWSEhVTpv0/Z6UcTFi8XycJ6kg 3Lf9w/BIACp4wAAAA== To: mptcp@lists.linux.dev, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Mat Martineau Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Davide Caratti , Matthieu Baerts X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=2073; i=matttbe@kernel.org; h=from:subject:message-id; bh=ugelAu7aQN103TVLeesZ/iaTBhc5Kz1J11t+K2izwI4=; b=owEBbQKS/ZANAwAIAfa3gk9CaaBzAcsmYgBlJaRVTwsNxcvEpc10OBRCe2Ym/XWJ5av0MDK1n zJJVUM5OaOJAjMEAAEIAB0WIQToy4X3aHcFem4n93r2t4JPQmmgcwUCZSWkVQAKCRD2t4JPQmmg c3r9EACsVK0SBCRcYgElqtp7dKW+2xWNpdDxdlYl06T5biqweQLIAmN2bCCQnLpXPXrydMKCYuW S3PNkvIdcUR65Jm9NP4oLK92VnVvBuC8gYvQOwTf00MutfCka8uN4XVon2D6XNGF6y7Ok97nWTT A07pQ9ylfx7ftWC0MxE/E7aOgUHo0lsBCLw0sHlO6hCRYioAa6wFqMJe9eEMN6U+Wm1D8n5oPxa 8lBToyk9i1jukZH5ehW4sVUiHJmSS5XwGqMk2b//5aDz9W9cTYxNUUBKeR2JlqKlb85I1kLiVds 2DRQx7PHsvvOUXphpCHUN+XGjgE4ev1cvn1n42Ly0ZolY2a0vLoXiBcNCPFPhiu9QTDJIDWLPSe Lv485+wYljXft7fD/UkN/C+G+8xN9dKWrsLCx5kWpFhwo45/IOflEFm3AtlheTw6MFckytoB2lJ M4YIZZrEVHYLVMSjjMcnMNqCNIBXvySNCKEo2GqaXpm9cIuNfymYtncTfZH0KGOjyfxgtN47ANk Vbc2+4GzB/GEeGKgW2ibdtcbo5ekSdoarmIXVMvDsSyTY25jd3IvA56voCPapjoXbvUpqrkNE94 lY9cMxEvIoXdFXHM/Ikl23t8k4fAeTVYgUgdV1ZvR3/NOnjfmqzdsDB9AjfWrymD78pCaUzEUwj 8xp7e+nyzK22eFA== X-Developer-Key: i=matttbe@kernel.org; a=openpgp; fpr=E8CB85F76877057A6E27F77AF6B7824F4269A073 X-Spam-Status: No, score=2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 10 Oct 2023 12:22:21 -0700 (PDT) X-Spam-Level: ** This series from Davide converts most of the MPTCP Netlink interface (plus uAPI bits) to use sources generated by YNL using a YAML spec file. This new YAML file is useful to validate the API and to generate a good documentation page. Patch 1 modifies YNL spec to support "uns-admin-perm" for genetlink legacy. Patch 2 converts Netlink structures from small_ops to ops to prepare the switch to YAML. Patch 3 adds the Netlink YAML spec for MPTCP. Patch 4 adds and uses a new header file generated from the new YAML spec. Patch 5 renames some handlers to match the ones generated from the YAML spec. Patch 6 adds and uses Netlink policies automatically generated from the YAML spec. Signed-off-by: Matthieu Baerts --- Davide Caratti (6): tools: ynl: add uns-admin-perm to genetlink legacy net: mptcp: convert netlink from small_ops to ops Documentation: netlink: add a YAML spec for mptcp uapi: mptcp: use header file generated from YAML spec net: mptcp: rename netlink handlers to mptcp_pm_nl__{doit,dumpit} net: mptcp: use policy generated by YAML spec Documentation/netlink/genetlink-legacy.yaml | 2 +- Documentation/netlink/specs/mptcp.yaml | 394 ++++++++++++++++++++++++++++ MAINTAINERS | 3 +- include/uapi/linux/mptcp.h | 174 +----------- include/uapi/linux/mptcp_pm.h | 149 +++++++++++ net/mptcp/Makefile | 3 +- net/mptcp/mptcp_pm_gen.c | 179 +++++++++++++ net/mptcp/mptcp_pm_gen.h | 58 ++++ net/mptcp/pm_netlink.c | 114 ++------ net/mptcp/pm_userspace.c | 8 +- net/mptcp/protocol.h | 6 +- 11 files changed, 816 insertions(+), 274 deletions(-) --- base-commit: f0107b864f004bc6fa19bf6d5074b4a366f3e16a change-id: 20231006-upstream-net-next-20231006-mptcp-ynl-0d3c99b1ed79 Best regards, -- Matthieu Baerts