mbox series

[net-next,00/10] tools: ynl-gen: dust off the user space code

Message ID 20230602023548.463441-1-kuba@kernel.org (mailing list archive)
Headers show
Series tools: ynl-gen: dust off the user space code | expand

Message

Jakub Kicinski June 2, 2023, 2:35 a.m. UTC
Every now and then I wish I finished the user space part of
the netlink specs, Python scripts kind of stole the show but
C is useful for selftests and stuff which needs to be fast.
Recently someone asked me how to access devlink and ethtool
from C++ which pushed me over the edge.

Fix things which bit rotted and finish notification handling.
This series contains code gen changes only. I'll follow up
with the fixed component, samples and docs as soon as it's
merged.

Jakub Kicinski (10):
  tools: ynl-gen: add extra headers for user space
  tools: ynl-gen: fix unused / pad attribute handling
  tools: ynl-gen: don't override pure nested struct
  tools: ynl-gen: loosen type consistency check for events
  tools: ynl-gen: add error checking for nested structs
  tools: ynl-gen: generate enum-to-string helpers
  tools: ynl-gen: move the response reading logic into YNL
  tools: ynl-gen: generate alloc and free helpers for req
  tools: ynl-gen: switch to family struct
  tools: ynl-gen: generate static descriptions of notifications

 tools/net/ynl/ynl-gen-c.py | 253 +++++++++++++++++++++++++++++--------
 1 file changed, 199 insertions(+), 54 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org June 3, 2023, 6:30 a.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Thu,  1 Jun 2023 19:35:38 -0700 you wrote:
> Every now and then I wish I finished the user space part of
> the netlink specs, Python scripts kind of stole the show but
> C is useful for selftests and stuff which needs to be fast.
> Recently someone asked me how to access devlink and ethtool
> from C++ which pushed me over the edge.
> 
> Fix things which bit rotted and finish notification handling.
> This series contains code gen changes only. I'll follow up
> with the fixed component, samples and docs as soon as it's
> merged.
> 
> [...]

Here is the summary with links:
  - [net-next,01/10] tools: ynl-gen: add extra headers for user space
    https://git.kernel.org/netdev/net-next/c/91dfaef243cd
  - [net-next,02/10] tools: ynl-gen: fix unused / pad attribute handling
    https://git.kernel.org/netdev/net-next/c/6ad49839ba9b
  - [net-next,03/10] tools: ynl-gen: don't override pure nested struct
    https://git.kernel.org/netdev/net-next/c/67c65ce762ad
  - [net-next,04/10] tools: ynl-gen: loosen type consistency check for events
    https://git.kernel.org/netdev/net-next/c/5605f102378f
  - [net-next,05/10] tools: ynl-gen: add error checking for nested structs
    https://git.kernel.org/netdev/net-next/c/eef9b794eac8
  - [net-next,06/10] tools: ynl-gen: generate enum-to-string helpers
    https://git.kernel.org/netdev/net-next/c/21b6e302789c
  - [net-next,07/10] tools: ynl-gen: move the response reading logic into YNL
    https://git.kernel.org/netdev/net-next/c/dc0956c98f11
  - [net-next,08/10] tools: ynl-gen: generate alloc and free helpers for req
    https://git.kernel.org/netdev/net-next/c/5d58f911c755
  - [net-next,09/10] tools: ynl-gen: switch to family struct
    https://git.kernel.org/netdev/net-next/c/8cb6afb33541
  - [net-next,10/10] tools: ynl-gen: generate static descriptions of notifications
    https://git.kernel.org/netdev/net-next/c/59d814f0f285

You are awesome, thank you!