netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/6] tools: ynl-gen: generate flags better
@ 2025-10-13 16:49 Asbjørn Sloth Tønnesen
  2025-10-13 16:49 ` [PATCH net-next 1/6] tools: ynl-gen: bitshift the flag values in the generated code Asbjørn Sloth Tønnesen
                   ` (6 more replies)
  0 siblings, 7 replies; 19+ messages in thread
From: Asbjørn Sloth Tønnesen @ 2025-10-13 16:49 UTC (permalink / raw)
  To: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni
  Cc: Asbjørn Sloth Tønnesen, Alexei Starovoitov, Andrew Lunn,
	Arkadiusz Kubalewski, Daniel Borkmann, Daniel Zahka,
	Donald Hunter, Jacob Keller, Jesper Dangaard Brouer, Jiri Pirko,
	Joe Damato, John Fastabend, Jonathan Corbet, Simon Horman,
	Stanislav Fomichev, Toke Høiland-Jørgensen,
	Vadim Fedorenko, Willem de Bruijn, bpf, netdev, linux-doc,
	linux-kernel

This series focusses on increasing the quality of
the C code generated by ynl-gen for flags.

NB: I included a note in patch 6, on usage of the private
NETDEV_XDP_ACT_MASK in user-space.

Asbjørn Sloth Tønnesen (6):
  tools: ynl-gen: bitshift the flag values in the generated code
  tools: ynl-gen: refactor render-max enum generation
  tools: ynl-gen: use uapi mask definition in NLA_POLICY_MASK
  tools: ynl-gen: add generic p_wrap() helper
  tools: ynl-gen: construct bitflag masks in generated headers
  tools: ynl-gen: allow custom naming of render-max definitions

 Documentation/netlink/genetlink-c.yaml        |  3 +
 Documentation/netlink/genetlink-legacy.yaml   |  3 +
 .../userspace-api/netlink/c-code-gen.rst      |  7 +-
 include/uapi/linux/dpll.h                     |  6 +-
 .../uapi/linux/ethtool_netlink_generated.h    | 20 ++---
 include/uapi/linux/netdev.h                   | 34 ++++----
 net/psp/psp-nl-gen.h                          |  4 +-
 tools/include/uapi/linux/netdev.h             | 34 ++++----
 tools/net/ynl/pyynl/lib/nlspec.py             |  7 +-
 tools/net/ynl/pyynl/ynl_gen_c.py              | 79 +++++++++++--------
 10 files changed, 117 insertions(+), 80 deletions(-)

-- 
2.51.0


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

end of thread, other threads:[~2025-10-14 19:32 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-13 16:49 [PATCH net-next 0/6] tools: ynl-gen: generate flags better Asbjørn Sloth Tønnesen
2025-10-13 16:49 ` [PATCH net-next 1/6] tools: ynl-gen: bitshift the flag values in the generated code Asbjørn Sloth Tønnesen
2025-10-13 23:07   ` Jacob Keller
2025-10-14 16:27     ` Asbjørn Sloth Tønnesen
2025-10-14  0:53   ` Jakub Kicinski
2025-10-14 16:49     ` Asbjørn Sloth Tønnesen
2025-10-14 19:24       ` Jakub Kicinski
2025-10-13 16:49 ` [PATCH net-next 2/6] tools: ynl-gen: refactor render-max enum generation Asbjørn Sloth Tønnesen
2025-10-14  0:58   ` Jakub Kicinski
2025-10-14 17:04     ` Asbjørn Sloth Tønnesen
2025-10-14 19:26       ` Jakub Kicinski
2025-10-13 16:50 ` [PATCH net-next 3/6] tools: ynl-gen: use uapi mask definition in NLA_POLICY_MASK Asbjørn Sloth Tønnesen
2025-10-14  0:59   ` Jakub Kicinski
2025-10-14 17:29     ` Asbjørn Sloth Tønnesen
2025-10-14 19:32       ` Jakub Kicinski
2025-10-13 16:50 ` [PATCH net-next 4/6] tools: ynl-gen: add generic p_wrap() helper Asbjørn Sloth Tønnesen
2025-10-13 16:50 ` [PATCH net-next 5/6] tools: ynl-gen: construct bitflag masks in generated headers Asbjørn Sloth Tønnesen
2025-10-13 16:50 ` [PATCH net-next 6/6] tools: ynl-gen: allow custom naming of render-max definitions Asbjørn Sloth Tønnesen
2025-10-13 23:10 ` [PATCH net-next 0/6] tools: ynl-gen: generate flags better Jacob Keller

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).