mbox series

[net-next,v1,0/8] devlink: retain error in struct devlink_fmsg

Message ID 20231010104318.3571791-1-przemyslaw.kitszel@intel.com (mailing list archive)
Headers show
Series devlink: retain error in struct devlink_fmsg | expand

Message

Przemek Kitszel Oct. 10, 2023, 10:43 a.m. UTC
Extend devlink fmsg to retain error, and return it at each subsequent call
(patch 1), so drivers could omit all but last error checks (the rest of
the patches).

I would be happy to re-send patches 3-8 as separate to their vendors
maintainers, to don't block merge of 1st one (as they are kind of
illustration here).

Especially mlx5 is massive thanks to custom fmsg API wrappers,
thus it's last.

Przemek Kitszel (8):
  devlink: retain error in struct devlink_fmsg
  netdevsim: devlink health: use retained error fmsg API
  pds_core: devlink health: use retained error fmsg API
  bnxt_en: devlink health: use retained error fmsg API
  hinic: devlink health: use retained error fmsg API
  octeontx2-af: devlink health: use retained error fmsg API
  mlxsw: core: devlink health: use retained error fmsg API
  net/mlx5: devlink health: use retained error fmsg API

 drivers/net/ethernet/amd/pds_core/devlink.c   |  27 +-
 .../net/ethernet/broadcom/bnxt/bnxt_devlink.c |  59 +--
 .../net/ethernet/huawei/hinic/hinic_devlink.c | 181 ++-----
 .../marvell/octeontx2/af/rvu_devlink.c        | 462 +++++-------------
 .../mellanox/mlx5/core/diag/fw_tracer.c       |  32 +-
 .../mellanox/mlx5/core/diag/reporter_vnic.c   | 108 ++--
 .../ethernet/mellanox/mlx5/core/en/health.c   | 144 +-----
 .../mellanox/mlx5/core/en/reporter_rx.c       | 357 +++-----------
 .../mellanox/mlx5/core/en/reporter_tx.c       | 275 +++--------
 .../net/ethernet/mellanox/mlx5/core/health.c  |  85 +---
 drivers/net/ethernet/mellanox/mlxsw/core.c    | 140 ++----
 drivers/net/netdevsim/health.c                | 103 +---
 net/devlink/health.c                          | 255 ++++------
 13 files changed, 561 insertions(+), 1667 deletions(-)