devlink: Add comments to use netlink gen tool
authorWilliam Tu <witu@nvidia.com>
Sun, 10 Mar 2024 14:55:03 +0000 (16:55 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 11 Mar 2024 23:00:16 +0000 (16:00 -0700)
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>
Link: https://lore.kernel.org/r/20240310145503.32721-1-witu@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/uapi/linux/devlink.h

index 130cae0..2da0c7e 100644 (file)
@@ -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