Skip to content

tools: ynl-gen: generate flags better

Asbjørn Sloth Tønnesen bpf linux-doc lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6tools: ynl-gen: bitshift the flag values in the generated codeinclude/uapi/linux/dpll.h include/uapi/linux/ethtool_netlink_generated.h include/uapi/linux/netdev.h +3 more+47 -445 replies
2/6tools: ynl-gen: refactor render-max enum generationtools/net/ynl/pyynl/ynl_gen_c.py+9 -113 replies
3/6tools: ynl-gen: use uapi mask definition in NLA_POLICY_MASKtools/net/ynl/pyynl/ynl_gen_c.py+8 -23 replies
4/6tools: ynl-gen: add generic p_wrap() helpernet/psp/psp-nl-gen.h tools/net/ynl/pyynl/ynl_gen_c.py+27 -190 replies
5/6tools: ynl-gen: construct bitflag masks in generated headersinclude/uapi/linux/netdev.h tools/include/uapi/linux/netdev.h tools/net/ynl/pyynl/ynl_gen_c.py+15 -40 replies
6/6tools: ynl-gen: allow custom naming of render-max definitionsDocumentation/netlink/genetlink-c.yaml Documentation/netlink/genetlink-legacy.yaml Documentation/userspace-api/netlink/c-code-gen.rst +1 more+15 -40 replies

Reviews trailers per patch

None of the 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJacob Keller
SeriesR-b
1/6
2/6
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net-next 0/6] tools: ynl-gen: generate flags better

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(-)
Signature · 1 line
2.51.0