netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jakub Kicinski <kuba@kernel.org>
To: davem@davemloft.net
Cc: netdev@vger.kernel.org, edumazet@google.com, pabeni@redhat.com,
	simon.horman@corigine.com, sdf@google.com,
	willemdebruijn.kernel@gmail.com, Jakub Kicinski <kuba@kernel.org>
Subject: [PATCH net-next v3 0/4] tools: ynl: user space C
Date: Mon,  5 Jun 2023 12:01:04 -0700	[thread overview]
Message-ID: <20230605190108.809439-1-kuba@kernel.org> (raw)

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/20230604175843.662084-1-kuba@kernel.org/
 - fix kdoc on patch 2
v1: https://lore.kernel.org/all/20230603052547.631384-1-kuba@kernel.org/

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

-- 
2.40.1


             reply	other threads:[~2023-06-05 19:01 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-05 19:01 Jakub Kicinski [this message]
2023-06-05 19:01 ` [PATCH net-next v3 1/4] tools: ynl-gen: clean up stray new lines at the end of reply-less requests Jakub Kicinski
2023-06-06 12:42   ` Willem de Bruijn
2023-06-05 19:01 ` [PATCH net-next v3 2/4] tools: ynl: user space helpers Jakub Kicinski
2023-06-06 12:40   ` Willem de Bruijn
2023-06-05 19:01 ` [PATCH net-next v3 3/4] tools: ynl: support fou and netdev in C Jakub Kicinski
2023-06-06 12:39   ` Willem de Bruijn
2023-06-05 19:01 ` [PATCH net-next v3 4/4] tools: ynl: add sample for netdev Jakub Kicinski
2023-06-06 12:39   ` Willem de Bruijn
2023-06-06 19:40 ` [PATCH net-next v3 0/4] tools: ynl: user space C 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=20230605190108.809439-1-kuba@kernel.org \
    --to=kuba@kernel.org \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=sdf@google.com \
    --cc=simon.horman@corigine.com \
    --cc=willemdebruijn.kernel@gmail.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 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).