Skip to contentSkip to conversation

devlink: Add comments to use netlink gen tool

PATCH Applied William Tu 3 participants 3 messages Mar 10, 2024 – Mar 11, 2024

Subsystems (3)
lore
Share & tools
lore

William Tu

author
#0 lore raw

PATCH v2 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.

---
v2: fix checkpatch error

---
 include/uapi/linux/devlink.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
include/uapi/linux/devlink.h +4 -1
index 130cae0d3e20..2da0c7eb6710 100644
@@ -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
Signature · 1 line
2.38.1
#2 lore raw
In reply to William Tu
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 8 lines · 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.

[...]

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!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html