Skip to content

devlink: finish conversion to generated split_ops

Jiri Pirko netdev oe-kbuild-all 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 Latest10 patches 2 repliesApplied 10/10
  2. v210 patches 2 repliesSuperseded
  3. v110 patches 27 repliesSuperseded

Changes in v3 from the cover letter

- just small fix and rebase in patch #2

Patches in v3 All 10 applied

#Subject and filesSizeRepliesApplied
1/10genetlink: don't merge dumpit split op for different cmds into single iternet/netlink/genetlink.c+2 -10 repliesApplied
2/10tools: ynl-gen: introduce support for bitfield32 attribute typeDocumentation/netlink/genetlink-legacy.yaml Documentation/userspace-api/netlink/genetlink-legacy.rst tools/net/ynl/lib/ynl.c +3 more+58 -50 repliesApplied
3/10tools: ynl-gen: render rsp_parse() helpers if cmd has only dump optools/net/ynl/ynl-gen-c.py+7 -40 repliesApplied
4/10netlink: specs: devlink: remove reload-action from devlink-get cmd replyDocumentation/netlink/specs/devlink.yaml tools/net/ynl/generated/devlink-user.c tools/net/ynl/generated/devlink-user.h+0 -80 repliesApplied
5/10netlink: specs: devlink: make dont-validate single lineDocumentation/netlink/specs/devlink.yaml+16 -510 repliesApplied
6/10devlink: make devlink_flash_overwrite enum named oneinclude/uapi/linux/devlink.h+1 -10 repliesApplied
7/10devlink: rename netlink callback to be aligned with the generated onesnet/devlink/dev.c net/devlink/devl_internal.h net/devlink/dpipe.c +10 more+152 -1580 repliesApplied
8/10netlink: specs: devlink: add the remaining command to generate complete split_opsDocumentation/netlink/specs/devlink.yaml net/devlink/netlink_gen.c net/devlink/netlink_gen.h +2 more+10495 -11311 replyApplied
9/10devlink: remove duplicated netlink callback prototypesnet/devlink/devl_internal.h+0 -620 repliesApplied
10/10devlink: remove netlink small_opsnet/devlink/netlink.c+1 -3270 repliesApplied

Reviews trailers per patch

1 of 10 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJakub KicinskiJacob Keller
SeriesR-b
1/10
2/10
3/10
4/10
5/10R-b
6/10
7/10
8/10
9/10
10/10

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 00/10] devlink: finish conversion to generated split_ops

From: Jiri Pirko <[email protected]>

This patchset converts the remaining genetlink commands to generated split_ops and removes the existing small_ops arrays entirely alongside with shared netlink attribute policy.

Patches #1-#6 are just small preparations and small fixes on multiple
places. Note that couple of patches contain the "Fixes" tag but no need to put them into -net tree.
Patch #7 is a simple rename preparation
Patch #8 is the main one in this set and adds actual definitions of cmds
in to yaml file.
Patches #9-#10 finalize the change removing bits that are no longer in
use.

---
v2->v3:
- just small fix and rebase in patch #2
v1->v2:
- see individual patches for changelog
- patch #3 is new
- patch "netlink: specs: devlink: fix reply command values" was removed from the set and sent separately to -net

Jiri Pirko (10):
genetlink: don't merge dumpit split op for different cmds into single
iter
tools: ynl-gen: introduce support for bitfield32 attribute type
tools: ynl-gen: render rsp_parse() helpers if cmd has only dump op
netlink: specs: devlink: remove reload-action from devlink-get cmd
reply
netlink: specs: devlink: make dont-validate single line
devlink: make devlink_flash_overwrite enum named one
devlink: rename netlink callback to be aligned with the generated ones
netlink: specs: devlink: add the remaining command to generate
complete split_ops
devlink: remove duplicated netlink callback prototypes
devlink: remove netlink small_ops

 Documentation/netlink/genetlink-legacy.yaml   |    2 +-
 Documentation/netlink/specs/devlink.yaml      | 1604 +++++-
 .../netlink/genetlink-legacy.rst              |    2 +-
 include/uapi/linux/devlink.h                  |    2 +-
 net/devlink/dev.c                             |   10 +-
 net/devlink/devl_internal.h                   |   64 -
 net/devlink/dpipe.c                           |   14 +-
 net/devlink/health.c                          |   24 +-
 net/devlink/linecard.c                        |    3 +-
 net/devlink/netlink.c                         |  328 +-
 net/devlink/netlink_gen.c                     |  757 ++-
 net/devlink/netlink_gen.h                     |   64 +-
 net/devlink/param.c                           |   14 +-
 net/devlink/port.c                            |   11 +-
 net/devlink/rate.c                            |    6 +-
 net/devlink/region.c                          |    8 +-
 net/devlink/resource.c                        |    4 +-
 net/devlink/sb.c                              |   17 +-
 net/devlink/trap.c                            |    9 +-
 net/netlink/genetlink.c                       |    3 +-
 tools/net/ynl/generated/devlink-user.c        | 5075 +++++++++++++++--
 tools/net/ynl/generated/devlink-user.h        | 4213 ++++++++++++--
 tools/net/ynl/lib/ynl.c                       |    6 +
 tools/net/ynl/lib/ynl.h                       |    1 +
 tools/net/ynl/lib/ynl.py                      |   13 +-
 tools/net/ynl/ynl-gen-c.py                    |   50 +-
 26 files changed, 10644 insertions(+), 1660 deletions(-)
Signature · 1 line
2.41.0