devlink: Add comments to use netlink gen tool
Subsystems (3)
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.
Signed-off-by William Tu <[email protected]>
Suggested-by Jiri Pirko <[email protected]>
---
v2: fix checkpatch error
--- include/uapi/linux/devlink.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
include/uapi/linux/devlink.h +4 -1
@@ -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
Quoted 6 lines · Sun, Mar 10, 2024 at 03:55:03PM CET, [email protected] wrote:
Add the comment to remind people not to manually modify the
net/devlink/netlink_gen.c, but to usetools/net/ynl/ynl-regen.shto generate it.Signed-off-by William Tu <[email protected]>Suggested-by Jiri Pirko <[email protected]>
Reviewed-by Jiri Pirko <[email protected]>
Thanks!
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 usetools/net/ynl/ynl-regen.shto generate it.Signed-off-by William Tu <[email protected]>Suggested-by Jiri Pirko <[email protected]>[...]
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