aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Tu <[email protected]>2024-03-10 16:55:03 +0200
committerJakub Kicinski <[email protected]>2024-03-11 16:00:16 -0700
commiteaf657f7adba8984509db7403ac6bdaa219e5722 (patch)
treecc8d6996c7521db7975a291bd52f0cc3f6ede960
parent76839e2f1fded42382ac7bad215cd9e9c293e97d (diff)
devlink: Add comments to use netlink gen tool
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 <[email protected]> Suggested-by: Jiri Pirko <[email protected]> Reviewed-by: Jiri Pirko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
-rw-r--r--include/uapi/linux/devlink.h5
1 files changed, 4 insertions, 1 deletions
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