Skip to contentSkip to conversation

devlink: Add comments to use netlink gen tool

PATCH Superseded William Tu 2 participants 3 messages Mar 8, 2024 – Mar 10, 2024

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

William Tu

author
#0 lore raw

PATCH 1/1 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.

---
 include/uapi/linux/devlink.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
include/uapi/linux/devlink.h +3 -1
index 130cae0d3e20..852ceb21ee69 100644
@@ -614,7 +614,9 @@ 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
Signature · 1 line
2.38.1
maintainer
#1 lore raw

include/uapi/linux/devlink.h enum devlink_attr { · line 619

Quoted 5 lines · On Fri, 8 Mar 2024 02:15:46 +0200 William Tu wrote:
include/uapi/linux/devlink.h +3 -1
-	/* 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. */

Unless someone feels strongly I reckon we should heed checkpatch's advice and put the */ on a separate line.

Signature · 1 line
pw-bot: cr
author
#2 lore raw
Quoted 9 lines · Jakub Kicinski

External email: Use caution opening links or attachments

include/uapi/linux/devlink.h enum devlink_attr { · line 619

Quoted 5 lines · On Fri, 8 Mar 2024 02:15:46 +0200 William Tu wrote:
include/uapi/linux/devlink.h +3 -1
-     /* 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. */
Quoted 4 lines

Unless someone feels strongly I reckon we should heed checkpatch's advice and put the */ on a separate line.
--
pw-bot: cr

Will do, thanks
William