]> www.infradead.org Git - users/hch/misc.git/commit
tools: ynl: add support for encoding multi-attr
authorAlessandro Marcolini <alessandromarcolini99@gmail.com>
Sat, 3 Feb 2024 13:16:53 +0000 (14:16 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 7 Feb 2024 02:56:19 +0000 (18:56 -0800)
commitb9bcfc3bc978f7b81104d2c01d4fe29a6f45e17a
treecbc6dde5f20924e089635b08538b0752b2c57432
parent70ff9a91e86850103f71d5920eff6bee81bd2a0d
tools: ynl: add support for encoding multi-attr

Multi-attr elements could not be encoded because of missing logic in the
ynl code. Enable encoding of these attributes by checking if the
attribute is a multi-attr and if the value to be processed is a list.

This has been tested both with the taprio and ets qdisc which contain
this kind of attributes.

Signed-off-by: Alessandro Marcolini <alessandromarcolini99@gmail.com>
Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Link: https://lore.kernel.org/r/c5bc9f5797168dbf7a4379c42f38d5de8ac7f38a.1706962013.git.alessandromarcolini99@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/lib/ynl.py