]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tools: ynl: fix converting flags to names after recent cleanup
authorJakub Kicinski <kuba@kernel.org>
Mon, 16 Oct 2023 21:39:37 +0000 (14:39 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 18 Oct 2023 00:59:46 +0000 (17:59 -0700)
commit9fea94d3a8cadd83f5de22eae953bd9e951d5215
treed703ddea5f5c33dd2dc8597b6c07d4aa4b2b1680
parent9fe1450f6d3ce67d963c195d3fb8510d9c673bdd
tools: ynl: fix converting flags to names after recent cleanup

I recently cleaned up specs to not specify enum-as-flags
when target enum is already defined as flags.
YNL Python library did not convert flags, unfortunately,
so this caused breakage for Stan and Willem.

Note that the nlspec.py abstraction already hides the differences
between flags and enums (value vs user_value), so the changes
are pretty trivial.

Fixes: 0629f22ec130 ("ynl: netdev: drop unnecessary enum-as-flags")
Reported-and-tested-by: Willem de Bruijn <willemb@google.com>
Reported-and-tested-by: Stanislav Fomichev <sdf@google.com>
Link: https://lore.kernel.org/all/ZS10NtQgd_BJZ3RU@google.com/
Link: https://lore.kernel.org/r/20231016213937.1820386-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/lib/ynl.py