diff options
author | Donald Hunter <[email protected]> | 2024-03-06 23:10:43 +0000 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2024-03-07 20:28:29 -0800 |
commit | 6fe7de5e9c08dd6838149a50e468bc8f94e4fdbe (patch) | |
tree | 085897cfcfce1561f223ca4259be5d32bd3b5e46 /tools/net/ynl/lib/ynl.py | |
parent | 771b7012e5f3a49739dab4be60b87517a249a1df (diff) |
tools/net/ynl: Fix c codegen for array-nest
ynl-gen-c generates e.g. 'calloc(mcast_groups, sizeof(*dst->mcast_groups))'
for array-nest attrs when it should be 'n_mcast_groups'.
Add a 'n_' prefix in the generated code for array-nests.
Signed-off-by: Donald Hunter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/net/ynl/lib/ynl.py')
0 files changed, 0 insertions, 0 deletions