From: Jakub Kicinski <kuba@kernel.org>
To: davem@davemloft.net
Cc: netdev@vger.kernel.org, edumazet@google.com, pabeni@redhat.com,
lorenzo@kernel.org, Jakub Kicinski <kuba@kernel.org>
Subject: [PATCH net 0/2] tools: ynl: fix enum-as-flags in the generic CLI
Date: Tue, 7 Mar 2023 16:39:21 -0800 [thread overview]
Message-ID: <20230308003923.445268-1-kuba@kernel.org> (raw)
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
next reply other threads:[~2023-03-08 0:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-08 0:39 Jakub Kicinski [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230308003923.445268-1-kuba@kernel.org \
--to=kuba@kernel.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=lorenzo@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.