Thread (16 messages) 16 messages, 2 authors, 2024-03-07

Re: [PATCH net-next v2 3/5] tools/net/ynl: Fix c codegen for array-nest

flat view

From: Jakub Kicinski <kuba@kernel.org>
Date: 2024-03-06 18:03:35

On Wed,  6 Mar 2024 12:57:02 +0000 Donald Hunter wrote:
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.
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help