devlink: use spec to generate split ops
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
- v3 Latest12 patches 1 replyApplied 12/12
- v211 patches 4 repliesSuperseded
- v18 patches 7 repliesSuperseded
Changes in v3 from the cover letter
- reordered a bit to avoid build break, small changes to fix that
- see individual patches for changelog
Patches in v3 All 12 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/12 | netlink: specs: add dump-strict flag for dont-validate propertyDocumentation/ Documentation/ Documentation/ | +3 | 0 replies | Applied |
| 2/12 | ynl-gen-c.py: filter rendering of validate field values for split opstools/ | +9 | 0 replies | Applied |
| 3/12 | ynl-gen-c.py: allow directional model for kernel modetools/ | +1 | 0 replies | Applied |
| 4/12 | ynl-gen-c.py: render netlink policies static for split opstools/ | +6 | 0 replies | Applied |
| 5/12 | devlink: rename devlink_nl_ops to devlink_nl_small_opsnet/ net/ net/ | +4 | 0 replies | Applied |
| 6/12 | devlink: rename couple of doit netlink callbacks to match generated namesnet/ net/ net/ | +6 | 0 replies | Applied |
| 7/12 | devlink: introduce couple of dumpit callbacks for split opsnet/ net/ net/ +1 more | +37 | 0 replies | Applied |
| 8/12 | devlink: un-static devlink_nl_pre/post_doit()net/ net/ | +8 | 0 replies | Applied |
| 9/12 | netlink: specs: devlink: add info-get dump opDocumentation/ tools/ tools/ | +66 | 0 replies | Applied |
| 10/12 | devlink: add split ops generated according to specDocumentation/ net/ net/ +1 more | +99 | 0 replies | Applied |
| 11/12 | devlink: include the generated netlink headernet/ | +2 | 0 replies | Applied |
| 12/12 | devlink: use generated split ops and remove duplicated commands from small opsnet/ net/ net/ | +4 | 0 replies | Applied |
Reviews trailers per patch
None of the 12 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Jakub Kicinski |
|---|---|
| Series | R-b |
| 1/12 | |
| 2/12 | |
| 3/12 | |
| 4/12 | |
| 5/12 | |
| 6/12 | |
| 7/12 | |
| 8/12 | |
| 9/12 | |
| 10/12 | |
| 11/12 | |
| 12/12 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [patch net-next v3 00/12] devlink: use spec to generate split ops
From: Jiri Pirko <[email protected]>
This is an outcome of the discussion in the following thread:
https://lore.kernel.org/netdev/[email protected]/
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.
---v2->v3:
- reordered a bit to avoid build break, small changes to fix that
- see individual patches for changelogv1->v2:
- see individual patches for changelog
Jiri Pirko (12):
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
devlink: rename couple of doit netlink callbacks to match generated
names
devlink: introduce couple of dumpit callbacks for split ops
devlink: un-static devlink_nl_pre/post_doit()
netlink: specs: devlink: add info-get dump op
devlink: add split ops generated according to spec
devlink: include the generated netlink header
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 | 26 ++++----- 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, 230 insertions(+), 60 deletions(-) create mode 100644 net/devlink/netlink_gen.c create mode 100644 net/devlink/netlink_gen.h
Signature · 1 line
2.41.0