tools: ynl: support packing binary arrays of scalars
authorJakub Kicinski <kuba@kernel.org>
Wed, 16 Jul 2025 00:03:23 +0000 (17:03 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 17 Jul 2025 23:13:58 +0000 (16:13 -0700)
commitc3e91403103974e8f40dc170f384c0b707fe93e4
treeafffad37dd779aa11488a3de3602831517cd37ec
parent1560af51e1ea32f87b7be2c28bb623308b37acf3
tools: ynl: support packing binary arrays of scalars

We support decoding a binary type with a scalar subtype already,
add support for sending such arrays to the kernel. While at it
also support using "None" to indicate that the binary attribute
should be empty. I couldn't decide whether empty binary should
be [] or None, but there should be no harm in supporting both.

Link: https://patch.msgid.link/20250716000331.1378807-4-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/pyynl/lib/ynl.py