Skip to content

devlink: cleanups and move devlink health functionality to separate file

Moshe Shemesh netdev 2 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest10 patches 2 repliesApplied 10/10
  2. v110 patches 8 repliesSuperseded

Changes in v2 from the cover letter

- Fix kdoc indentation and make reporter create/destroy kdoc more clear
- Add note on the two cleanup patches that the bug is harmless
- Drop patch 4 ("devlink: health: Don't try to add trace with NULL msg")
- Add patch "devlink: Fix TP_STRUCT_entry in trace of devlink health report"

Patches in v2 All 10 applied

#Subject and filesSizeRepliesApplied
1/10devlink: Split out health reporter create codenet/devlink/Makefile net/devlink/devl_internal.h net/devlink/health.c +1 more+226 -2091 replyApplied
2/10devlink: health: Fix nla_nest_end in error flownet/devlink/leftover.c+1 -10 repliesApplied
3/10devlink: Move devlink health get and set code to health filenet/devlink/devl_internal.h net/devlink/health.c net/devlink/leftover.c+234 -2170 repliesApplied
4/10devlink: Move devlink health report and recover to health filenet/devlink/devl_internal.h net/devlink/health.c net/devlink/leftover.c+144 -1380 repliesApplied
5/10devlink: Move devlink fmsg and health diagnose to health filenet/devlink/devl_internal.h net/devlink/health.c net/devlink/leftover.c+636 -6300 repliesApplied
6/10devlink: Move devlink health dump to health filenet/devlink/devl_internal.h net/devlink/health.c net/devlink/leftover.c+126 -1230 repliesApplied
7/10devlink: Move devlink health test to health filenet/devlink/devl_internal.h net/devlink/health.c net/devlink/leftover.c+18 -160 repliesApplied
8/10devlink: Move health common function to health filenet/devlink/devl_internal.h net/devlink/health.c+32 -600 repliesApplied
9/10devlink: Update devlink health documentationDocumentation/networking/devlink/devlink-health.rst+21 -20 repliesApplied
10/10devlink: Fix TP_STRUCT_entry in trace of devlink health reportinclude/trace/events/devlink.h+1 -11 replyApplied

Reviews trailers per patch

All 10 patches have a Reviewed-by or Acked-by.

PatchJiri PirkoJakub Kicinski
1/10R-b
2/10R-b R-b
3/10R-b R-b
4/10R-b R-b
5/10R-b R-b
6/10R-b R-b
7/10R-b R-b
8/10R-b R-b
9/10R-b R-b
10/10R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH net-next v2 00/10] devlink: cleanups and move devlink health functionality to separate file

This patchset moves devlink health callbacks, helpers and related code from leftover.c to new file health.c. About 1.3K LoC are moved by this patchset, covering all devlink health functionality.

In addition this patchset includes a couple of small cleanups in devlink health code and documentation update.

---
v1->v2:
- Fix kdoc indentation and make reporter create/destroy kdoc more clear
- Add note on the two cleanup patches that the bug is harmless
- Drop patch 4 ("devlink: health: Don't try to add trace with NULL msg")
- Add patch "devlink: Fix TP_STRUCT_entry in trace of devlink health report"

Moshe Shemesh (10):
devlink: Split out health reporter create code
devlink: health: Fix nla_nest_end in error flow
devlink: Move devlink health get and set code to health file
devlink: Move devlink health report and recover to health file
devlink: Move devlink fmsg and health diagnose to health file
devlink: Move devlink health dump to health file
devlink: Move devlink health test to health file
devlink: Move health common function to health file
devlink: Update devlink health documentation
devlink: Fix TP_STRUCT_entry in trace of devlink health report

 .../networking/devlink/devlink-health.rst     |   23 +-
 include/trace/events/devlink.h                |    2 +-
 net/devlink/Makefile                          |    2 +-
 net/devlink/devl_internal.h                   |   16 +
 net/devlink/health.c                          | 1333 +++++++++++++++++
 net/devlink/leftover.c                        | 1330 +---------------
 6 files changed, 1374 insertions(+), 1332 deletions(-)
 create mode 100644 net/devlink/health.c
Signature · 1 line
2.27.0