mirror_ubuntu-kernels/tools/net/ynl/lib
Alessandro Marcolini b9bcfc3bc9 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>
2024-02-06 18:56:19 -08:00
..
__init__.py tools/net/ynl: Add support for create flags 2023-08-27 17:17:10 -07:00
.gitignore tools: net: add __pycache__ to gitignore 2023-02-24 11:55:47 -08:00
Makefile tools: ynl: user space helpers 2023-06-06 12:31:31 -07:00
nlspec.py tools: ynl: correct typo and docstring 2024-02-06 18:56:19 -08:00
ynl-priv.h tools: ynl: move private definitions to a separate header 2023-12-05 20:08:33 -08:00
ynl.c tools: ynl-gen: support fixed headers in genetlink 2023-12-14 17:51:21 -08:00
ynl.h tools: ynl-gen: support fixed headers in genetlink 2023-12-14 17:51:21 -08:00
ynl.py tools: ynl: add support for encoding multi-attr 2024-02-06 18:56:19 -08:00