netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net 0/2] tools: ynl: fix enum-as-flags in the generic CLI
@ 2023-03-08  0:39 Jakub Kicinski
  2023-03-08  0:39 ` [PATCH net 1/2] tools: ynl: move the enum classes to shared code Jakub Kicinski
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jakub Kicinski @ 2023-03-08  0:39 UTC (permalink / raw)
  To: davem; +Cc: netdev, edumazet, pabeni, lorenzo, Jakub Kicinski

The CLI needs to use proper classes when looking at Enum definitions
rather than interpreting the YAML spec ad-hoc, because we have more
than on format of the definition supported.

Jakub Kicinski (2):
  tools: ynl: move the enum classes to shared code
  tools: ynl: fix enum-as-flags in the generic CLI

 tools/net/ynl/lib/__init__.py |   7 ++-
 tools/net/ynl/lib/nlspec.py   |  99 +++++++++++++++++++++++++++++++
 tools/net/ynl/lib/ynl.py      |   9 +--
 tools/net/ynl/ynl-gen-c.py    | 107 +++++++---------------------------
 4 files changed, 126 insertions(+), 96 deletions(-)

-- 
2.39.2


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-03-09  7:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-08  0:39 [PATCH net 0/2] tools: ynl: fix enum-as-flags in the generic CLI Jakub Kicinski
2023-03-08  0:39 ` [PATCH net 1/2] tools: ynl: move the enum classes to shared code Jakub Kicinski
2023-03-08  0:39 ` [PATCH net 2/2] tools: ynl: fix enum-as-flags in the generic CLI Jakub Kicinski
2023-03-09  7:30 ` [PATCH net 0/2] " patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).