On Tue, 19 Nov 2024 10:31:03 +0100 Jiri Pirko wrote:
quoted
It seems that type: indexed-array with sub-type: u32 would be the correct
approach. However, I noticed that this support appears to be missing in the
ynl-gen-c.py script in this series:
https://lore.kernel.org/all/20240404063114.1221532-3-liuhangbin@gmail.com/ (local).
If this is indeed the case, how should I specify the min and max values for
the u32 entries in the indexed-array?
Not sure. Perhaps Jakub/Donald would know. Ccing.
I haven't read full context, but all "nested" arrays are discouraged.
Use:
multi-attr: true
and repeat the entries without wrapping them into another attr.