Skip to content

tools: ynl: user space C

Jakub Kicinski netdev 3 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. v3 Latest4 patches 4 repliesApplied 4/4
  2. v24 patches 5 repliesSuperseded
  3. v14 patches 3 repliesSuperseded

Changes in v3 from the cover letter

- change the C standard s/gnu99/gnu11/
v2: https://lore.kernel.org/all/[email protected]/
- fix kdoc on patch 2
v1: https://lore.kernel.org/all/[email protected]/

Patches in v3 All 4 applied

#Subject and filesSizeRepliesApplied
1/4tools: ynl-gen: clean up stray new lines at the end of reply-less requeststools/net/ynl/ynl-gen-c.py+4 -31 replyApplied
2/4tools: ynl: user space helpersDocumentation/userspace-api/netlink/intro-specs.rst tools/net/ynl/Makefile tools/net/ynl/generated/Makefile +4 more+1310 -11 replyApplied
3/4tools: ynl: support fou and netdev in Ctools/net/ynl/generated/Makefile tools/net/ynl/generated/fou-user.c tools/net/ynl/generated/fou-user.h +2 more+1016 -11 replyApplied
4/4tools: ynl: add sample for netdevtools/net/ynl/samples/.gitignore tools/net/ynl/samples/Makefile tools/net/ynl/samples/netdev.c+137 -01 replyApplied

Reviews trailers per patch

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

PatchWillem de Bruijn
1/4R-b
2/4A-b
3/4R-b
4/4R-b

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

Read the v3 thread

Cover letter [PATCH net-next v3 0/4] tools: ynl: user space C

Use the code gen which is already in tree to generate a user space library for a handful of simple families. I find YNL C quite useful in some WIP projects, and I think others may find it useful, too. I was hoping someone will pick this work up and finish it... but it seems that Python YNL has largely stolen the thunder. Python may not be great for selftest, tho, and actually this lib is more fully-featured. The Python script was meant as a quick demo, funny how those things go.

v3:
- change the C standard s/gnu99/gnu11/
v2: https://lore.kernel.org/all/[email protected]/
- fix kdoc on patch 2
v1: https://lore.kernel.org/all/[email protected]/

Jakub Kicinski (4):
tools: ynl-gen: clean up stray new lines at the end of reply-less
requests
tools: ynl: user space helpers
tools: ynl: support fou and netdev in C
tools: ynl: add sample for netdev

 .../userspace-api/netlink/intro-specs.rst     |  79 ++
 tools/net/ynl/Makefile                        |  19 +
 tools/net/ynl/generated/Makefile              |  45 +
 tools/net/ynl/generated/fou-user.c            | 340 +++++++
 tools/net/ynl/generated/fou-user.h            | 337 +++++++
 tools/net/ynl/generated/netdev-user.c         | 250 +++++
 tools/net/ynl/generated/netdev-user.h         |  88 ++
 tools/net/ynl/lib/Makefile                    |  28 +
 tools/net/ynl/lib/ynl.c                       | 901 ++++++++++++++++++
 tools/net/ynl/lib/ynl.h                       | 237 +++++
 tools/net/ynl/samples/.gitignore              |   1 +
 tools/net/ynl/samples/Makefile                |  28 +
 tools/net/ynl/samples/netdev.c                | 108 +++
 tools/net/ynl/ynl-gen-c.py                    |   7 +-
 tools/net/ynl/ynl-regen.sh                    |   2 +-
 15 files changed, 2466 insertions(+), 4 deletions(-)
 create mode 100644 tools/net/ynl/Makefile
 create mode 100644 tools/net/ynl/generated/Makefile
 create mode 100644 tools/net/ynl/generated/fou-user.c
 create mode 100644 tools/net/ynl/generated/fou-user.h
 create mode 100644 tools/net/ynl/generated/netdev-user.c
 create mode 100644 tools/net/ynl/generated/netdev-user.h
 create mode 100644 tools/net/ynl/lib/Makefile
 create mode 100644 tools/net/ynl/lib/ynl.c
 create mode 100644 tools/net/ynl/lib/ynl.h
 create mode 100644 tools/net/ynl/samples/.gitignore
 create mode 100644 tools/net/ynl/samples/Makefile
 create mode 100644 tools/net/ynl/samples/netdev.c
Signature · 1 line
2.40.1