[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241119063313.5bc46276@kernel.org>
Date: Tue, 19 Nov 2024 06:33:13 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: Jiri Pirko <jiri@...nulli.us>
Cc: Carolina Jubran <cjubran@...dia.com>, Tariq Toukan <tariqt@...dia.com>,
"David S. Miller" <davem@...emloft.net>, Paolo Abeni <pabeni@...hat.com>,
Eric Dumazet <edumazet@...gle.com>, Andrew Lunn <andrew+netdev@...n.ch>,
netdev@...r.kernel.org, Saeed Mahameed <saeedm@...dia.com>, Gal Pressman
<gal@...dia.com>, Leon Romanovsky <leonro@...dia.com>, Cosmin Ratiu
<cratiu@...dia.com>, donald.hunter@...il.com
Subject: Re: [PATCH net-next V3 3/8] devlink: Extend devlink rate API with
traffic classes bandwidth management
On Tue, 19 Nov 2024 10:31:03 +0100 Jiri Pirko wrote:
> >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/.
> >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.
Powered by blists - more mailing lists