diff options
author | Lorenzo Bianconi <lorenzo@kernel.org> | 2023-03-09 13:25:25 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-03-10 21:33:47 -0800 |
commit | 8f76a4f80fba8096a611b6b60c40a0f4cab3ddfb (patch) | |
tree | cf4dd16aed15ea099f07b0222fb3560ca85618dc /tools/net/ynl/lib | |
parent | 7e4f8a0c495413a50413e8c9f1032ce1bc633bae (diff) | |
download | linux-8f76a4f80fba8096a611b6b60c40a0f4cab3ddfb.tar.gz linux-8f76a4f80fba8096a611b6b60c40a0f4cab3ddfb.tar.bz2 linux-8f76a4f80fba8096a611b6b60c40a0f4cab3ddfb.zip |
tools: ynl: fix render-max for flags definition
Properly manage render-max property for flags definition type
introducing mask value and setting it to (last_element << 1) - 1
instead of adding max value set to last_element + 1
Fixes: be5bea1cc0bf ("net: add basic C code generators for Netlink")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/net/ynl/lib')
0 files changed, 0 insertions, 0 deletions