Skip to content

tools: ynl-gen: print setters for multi-val attrs

Jakub Kicinski netdev 2 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 0 repliesApplied 5/5
  2. v15 patches 7 repliesSuperseded

Changes in v2 from the cover letter

- rename a variable to args
v1: https://lore.kernel.org/[email protected]

Patches in v2 All 5 applied

#Subject and filesSizeRepliesApplied
1/5tools: ynl-gen: don't add suffix for pure typestools/net/ynl/pyynl/ynl_gen_c.py+3 -10 repliesApplied
2/5tools: ynl-gen: move free printing to the print_type_full() helpertools/net/ynl/pyynl/ynl_gen_c.py+4 -30 repliesApplied
3/5tools: ynl-gen: print alloc helper for multi-val attrstools/net/ynl/pyynl/ynl_gen_c.py+16 -30 repliesApplied
4/5tools: ynl-gen: print setters for multi-val attrstools/net/ynl/pyynl/ynl_gen_c.py+13 -60 repliesApplied
5/5selftests: drv-net: devmem: use new mattr ynl helperstools/testing/selftests/drivers/net/hw/ncdevmem.c+3 -50 repliesApplied

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchDonald HunterStanislav FomichevMina Almasry
1/5R-b A-b
2/5R-b A-b
3/5R-b A-b
4/5R-b A-b
5/5R-b A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH net-next v2 0/5] tools: ynl-gen: print setters for multi-val attrs

ncdevmem seems to manually prepare the queue attributes. This is not ideal, YNL should be providing helpers for this. Make YNL output allocation and setter helpers for multi-val attrs.

v2:
- rename a variable to args
v1: https://lore.kernel.org/[email protected]

Jakub Kicinski (5):
tools: ynl-gen: don't add suffix for pure types
tools: ynl-gen: move free printing to the print_type_full() helper
tools: ynl-gen: print alloc helper for multi-val attrs
tools: ynl-gen: print setters for multi-val attrs
selftests: drv-net: devmem: use new mattr ynl helpers

 .../selftests/drivers/net/hw/ncdevmem.c       |  8 ++-
 tools/net/ynl/pyynl/ynl_gen_c.py              | 49 ++++++++++++++-----
 2 files changed, 39 insertions(+), 18 deletions(-)
Signature · 1 line
2.50.1