linux/tools/net/ynl/lib
Jakub Kicinski 4c6170d1ae tools: ynl: default to treating enums as flags for mask generation
I was a bit too optimistic in commit bf51d27704 ("tools: ynl: fix
get_mask utility routine"), not every mask we use is necessarily
coming from an enum of type "flags". We also allow flipping an
enum into flags on per-attribute basis. That's done by
the 'enum-as-flags' property of an attribute.

Restore this functionality, it's not currently used by any in-tree
family.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-03-27 08:56:04 +01:00
..
.gitignore tools: net: add __pycache__ to gitignore 2023-02-24 11:55:47 -08:00
__init__.py tools: ynl: move the enum classes to shared code 2023-03-08 23:28:21 -08:00
nlspec.py tools: ynl: default to treating enums as flags for mask generation 2023-03-27 08:56:04 +01:00
ynl.py tools: ynl: Add missing types to encode/decode 2023-03-27 08:53:03 +01:00