Message ID | 20231010-upstream-net-next-20231006-mptcp-ynl-v1-0-18dd117e8f50@kernel.org (mailing list archive) |
---|---|
Headers | show
Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0A13E2FE01; Tue, 10 Oct 2023 19:22:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ViCzO3gd" 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 <matttbe@kernel.org> 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> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: <netdev.vger.kernel.org> List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:netdev+unsubscribe@vger.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" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Mat Martineau <martineau@kernel.org> Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Davide Caratti <dcaratti@redhat.com>, Matthieu Baerts <matttbe@kernel.org> 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-Patchwork-Delegate: kuba@kernel.org |
Series |
mptcp: convert Netlink code to use YAML spec
|
expand
|
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 <matttbe@kernel.org> --- 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_<blah>_{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,