diff mbox series

[v2,net-next] devlink: Add comments to use netlink gen tool

Message ID 20240310145503.32721-1-witu@nvidia.com (mailing list archive)
State Accepted
Commit eaf657f7adba8984509db7403ac6bdaa219e5722
Delegated to: Netdev Maintainers
Headers show
Series [v2,net-next] devlink: Add comments to use netlink gen tool | expand

Checks

Context Check Description
netdev/series_format success Single patches do not need cover letters
netdev/tree_selection success Clearly marked for net-next
netdev/ynl success Generated files up to date; no warnings/errors; no diff in generated;
netdev/fixes_present success Fixes tag not required for -next series
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 1310 this patch: 1310
netdev/build_tools success Errors and warnings before: 0 this patch: 0
netdev/cc_maintainers success CCed 2 of 2 maintainers
netdev/build_clang success Errors and warnings before: 964 this patch: 964
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/deprecated_api success None detected
netdev/check_selftest success No net selftest shell script
netdev/verify_fixes success No Fixes tag
netdev/build_allmodconfig_warn success Errors and warnings before: 1491 this patch: 1491
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 11 lines checked
netdev/build_clang_rust success No Rust files in patch. Skipping build
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0
netdev/contest warning net-next-2024-03-11--21-00 (tests: 883)

Commit Message

William Tu March 10, 2024, 2:55 p.m. UTC
Add the comment to remind people not to manually modify
the net/devlink/netlink_gen.c, but to use tools/net/ynl/ynl-regen.sh
to generate it.

Signed-off-by: William Tu <witu@nvidia.com>
Suggested-by: Jiri Pirko <jiri@nvidia.com>
---
v2: fix checkpatch error

---
 include/uapi/linux/devlink.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Comments

Jiri Pirko March 11, 2024, 8:35 a.m. UTC | #1
Sun, Mar 10, 2024 at 03:55:03PM CET, witu@nvidia.com wrote:
>Add the comment to remind people not to manually modify
>the net/devlink/netlink_gen.c, but to use tools/net/ynl/ynl-regen.sh
>to generate it.
>
>Signed-off-by: William Tu <witu@nvidia.com>
>Suggested-by: Jiri Pirko <jiri@nvidia.com>

Reviewed-by: Jiri Pirko <jiri@nvidia.com>

Thanks!
patchwork-bot+netdevbpf@kernel.org March 11, 2024, 11:20 p.m. UTC | #2
Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Sun, 10 Mar 2024 16:55:03 +0200 you wrote:
> Add the comment to remind people not to manually modify
> the net/devlink/netlink_gen.c, but to use tools/net/ynl/ynl-regen.sh
> to generate it.
> 
> Signed-off-by: William Tu <witu@nvidia.com>
> Suggested-by: Jiri Pirko <jiri@nvidia.com>
> 
> [...]

Here is the summary with links:
  - [v2,net-next] devlink: Add comments to use netlink gen tool
    https://git.kernel.org/netdev/net-next/c/eaf657f7adba

You are awesome, thank you!
diff mbox series

Patch

diff --git a/include/uapi/linux/devlink.h b/include/uapi/linux/devlink.h
index 130cae0d3e20..2da0c7eb6710 100644
--- a/include/uapi/linux/devlink.h
+++ b/include/uapi/linux/devlink.h
@@ -614,7 +614,10 @@  enum devlink_attr {
 
 	DEVLINK_ATTR_REGION_DIRECT,		/* flag */
 
-	/* add new attributes above here, update the policy in devlink.c */
+	/* Add new attributes above here, update the spec in
+	 * Documentation/netlink/specs/devlink.yaml and re-generate
+	 * net/devlink/netlink_gen.c.
+	 */
 
 	__DEVLINK_ATTR_MAX,
 	DEVLINK_ATTR_MAX = __DEVLINK_ATTR_MAX - 1