netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch net-next v2 00/11] devlink: use spec to generate split ops
@ 2023-08-02 15:20 Jiri Pirko
  2023-08-02 15:20 ` [patch net-next v2 01/11] netlink: specs: add dump-strict flag for dont-validate property Jiri Pirko
                   ` (11 more replies)
  0 siblings, 12 replies; 16+ messages in thread
From: Jiri Pirko @ 2023-08-02 15:20 UTC (permalink / raw)
  To: netdev; +Cc: kuba, pabeni, davem, edumazet, moshe, saeedm, idosch, petrm

From: Jiri Pirko <jiri@nvidia.com>

This is an outcome of the discussion in the following thread:
https://lore.kernel.org/netdev/20230720121829.566974-1-jiri@resnulli.us/
It serves as a dependency on the linked selector patchset.

There is an existing spec for devlink used for userspace part
generation. There are two commands supported there.

This patchset extends the spec so kernel split ops code could
be generated from it.

---
v1->v2:
- see individual patches for changelog

Jiri Pirko (11):
  netlink: specs: add dump-strict flag for dont-validate property
  ynl-gen-c.py: filter rendering of validate field values for split ops
  ynl-gen-c.py: allow directional model for kernel mode
  ynl-gen-c.py: render netlink policies static for split ops
  devlink: rename devlink_nl_ops to devlink_nl_small_ops
  netlink: specs: devlink: add info-get dump op
  devlink: add split ops generated according to spec
  devlink: include the generated netlink header
  devlink: rename couple of doit netlink callbacks to match generated
    names
  devlink: introduce couple of dumpit callbacks for split ops
  devlink: use generated split ops and remove duplicated commands from
    small ops

 Documentation/netlink/genetlink-c.yaml      |  2 +-
 Documentation/netlink/genetlink-legacy.yaml |  2 +-
 Documentation/netlink/genetlink.yaml        |  2 +-
 Documentation/netlink/specs/devlink.yaml    | 14 ++++-
 net/devlink/Makefile                        |  2 +-
 net/devlink/dev.c                           | 27 +++++-----
 net/devlink/devl_internal.h                 | 20 +++----
 net/devlink/leftover.c                      | 16 +-----
 net/devlink/netlink.c                       | 35 ++++++------
 net/devlink/netlink_gen.c                   | 59 +++++++++++++++++++++
 net/devlink/netlink_gen.h                   | 29 ++++++++++
 tools/net/ynl/generated/devlink-user.c      | 53 ++++++++++++++++++
 tools/net/ynl/generated/devlink-user.h      | 10 ++++
 tools/net/ynl/ynl-gen-c.py                  | 20 +++++--
 14 files changed, 231 insertions(+), 60 deletions(-)
 create mode 100644 net/devlink/netlink_gen.c
 create mode 100644 net/devlink/netlink_gen.h

-- 
2.41.0


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2023-08-03  6:01 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-02 15:20 [patch net-next v2 00/11] devlink: use spec to generate split ops Jiri Pirko
2023-08-02 15:20 ` [patch net-next v2 01/11] netlink: specs: add dump-strict flag for dont-validate property Jiri Pirko
2023-08-02 15:20 ` [patch net-next v2 02/11] ynl-gen-c.py: filter rendering of validate field values for split ops Jiri Pirko
2023-08-02 15:20 ` [patch net-next v2 03/11] ynl-gen-c.py: allow directional model for kernel mode Jiri Pirko
2023-08-03  1:54   ` Jakub Kicinski
2023-08-02 15:20 ` [patch net-next v2 04/11] ynl-gen-c.py: render netlink policies static for split ops Jiri Pirko
2023-08-02 15:20 ` [patch net-next v2 05/11] devlink: rename devlink_nl_ops to devlink_nl_small_ops Jiri Pirko
2023-08-02 15:20 ` [patch net-next v2 06/11] netlink: specs: devlink: add info-get dump op Jiri Pirko
2023-08-02 15:20 ` [patch net-next v2 07/11] devlink: add split ops generated according to spec Jiri Pirko
2023-08-02 15:20 ` [patch net-next v2 08/11] devlink: include the generated netlink header Jiri Pirko
2023-08-02 15:20 ` [patch net-next v2 09/11] devlink: rename couple of doit netlink callbacks to match generated names Jiri Pirko
2023-08-02 15:20 ` [patch net-next v2 10/11] devlink: introduce couple of dumpit callbacks for split ops Jiri Pirko
2023-08-03  2:04   ` Jakub Kicinski
2023-08-02 15:20 ` [patch net-next v2 11/11] devlink: use generated split ops and remove duplicated commands from small ops Jiri Pirko
2023-08-03  2:07 ` [patch net-next v2 00/11] devlink: use spec to generate split ops Jakub Kicinski
2023-08-03  6:01   ` Jiri Pirko

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).