Skip to content

Commit eaf657f

Browse files
williamtukuba-moo
authored andcommitted
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]>
1 parent 76839e2 commit eaf657f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

include/uapi/linux/devlink.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,10 @@ enum devlink_attr {
614614

615615
DEVLINK_ATTR_REGION_DIRECT, /* flag */
616616

617-
/* add new attributes above here, update the policy in devlink.c */
617+
/* Add new attributes above here, update the spec in
618+
* Documentation/netlink/specs/devlink.yaml and re-generate
619+
* net/devlink/netlink_gen.c.
620+
*/
618621

619622
__DEVLINK_ATTR_MAX,
620623
DEVLINK_ATTR_MAX = __DEVLINK_ATTR_MAX - 1

0 commit comments

Comments
 (0)