devlink region trigger support
Get series with b4
b4 am [email protected]Versions newest first
- v2 Latest3 patches 20 repliesIn review
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | devlink: add callback to trigger region snapshotsdrivers/ drivers/ include/ +1 more | +19 | 0 replies | |
| 2/3 | devlink: introduce command to trigger region snapshotinclude/ net/ | +36 | 0 replies | |
| 3/3 | netdevsim: support triggering snapshot through devlinkdrivers/ | +26 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/3] devlink region trigger support
This series consists of patches to enable devlink to request a snapshot via a new DEVLINK_CMD_REGION_TRIGGER_SNAPSHOT.
A reviewer might notice that the devlink health API already has such support for handling a similar case. However, the health API does not make sense in cases where the data is not related to an error condition.
In this case, using the health API only for the dumping feels incorrect. Regions make sense when the addressable content is not captured automatically on error conditions, but only upon request by the devlink API.
The netdevsim driver is modified to support the new trigger_snapshot callback as an example of how this can be used.
Jacob Keller (3):
devlink: add callback to trigger region snapshots
devlink: introduce command to trigger region snapshot
netdevsim: support triggering snapshot through devlink
drivers/net/ethernet/mellanox/mlx4/crdump.c | 4 +- drivers/net/netdevsim/dev.c | 37 ++++++++++++----- include/net/devlink.h | 12 ++++-- include/uapi/linux/devlink.h | 2 + net/core/devlink.c | 45 +++++++++++++++++++-- 5 files changed, 80 insertions(+), 20 deletions(-)
Signature · 1 line
2.25.0.rc1