Thread (16 messages) 16 messages, 4 authors, 2024-11-19

Re: [PATCH net-next V3 3/8] devlink: Extend devlink rate API with traffic classes bandwidth management

flat view

From: Jiri Pirko <jiri@resnulli.us>
Date: 2024-11-19 14:54:37

Tue, Nov 19, 2024 at 03:33:13PM CET, kuba@kernel.org wrote:
On Tue, 19 Nov 2024 10:31:03 +0100 Jiri Pirko wrote:
quoted
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.
But we need to use the array index. It looks a bit odd to me to depent
on the index in multi-attr in general. It is not guaranteed other
atrributes don't get in the middle. Ordering should be maintained, that
is ok.

How about to have a nest that contain just one multi-attr attribute?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help