[Intel-wired-lan] [PATCH iwl-next v2 0/6] Add support for devlink health events

From: Mateusz Polchlopek
Date: Fri Jul 12 2024 - 05:45:05 EST


Reports for two kinds of events are implemented, Malicious Driver
Detection (MDD) and Tx hang.

Patches 1, 2: minor core improvements (checkpatch.pl and devlink extension)
Patches 3, 4, 5: ice devlink health infra + straightforward status reports
Patch 6: extension to dump also skb on Tx hang, this patch have much of
copy-paste from:
- net/core/skbuff.c (function skb_dump() - modified to dump into buffer)
- lib/hexdump.c (function print_hex_dump() - adjusted)

---
v2:
- added additional cast to long in function ice_tx_hang_reporter_dump() - patch 3
- removed size_mul() in devlink_fmsg_binary_pair_put() call - patch 3

v1:
- initial series
https://lore.kernel.org/netdev/20240703125922.5625-1-mateusz.polchlopek@xxxxxxxxx/
---

Ben Shelton (1):
ice: Add MDD logging via devlink health

Przemek Kitszel (5):
checkpatch: don't complain on _Generic() use
devlink: add devlink_fmsg_put() macro
ice: add Tx hang devlink health reporter
ice: print ethtool stats as part of Tx hang devlink health reporter
ice: devlink health: dump also skb on Tx hang

drivers/net/ethernet/intel/ice/Makefile | 1 +
.../intel/ice/devlink/devlink_health.c | 484 ++++++++++++++++++
.../intel/ice/devlink/devlink_health.h | 45 ++
drivers/net/ethernet/intel/ice/ice.h | 2 +
drivers/net/ethernet/intel/ice/ice_ethtool.c | 10 +-
drivers/net/ethernet/intel/ice/ice_ethtool.h | 2 +
.../ethernet/intel/ice/ice_ethtool_common.h | 19 +
drivers/net/ethernet/intel/ice/ice_main.c | 17 +-
include/net/devlink.h | 11 +
scripts/checkpatch.pl | 2 +
10 files changed, 585 insertions(+), 8 deletions(-)
create mode 100644 drivers/net/ethernet/intel/ice/devlink/devlink_health.c
create mode 100644 drivers/net/ethernet/intel/ice/devlink/devlink_health.h
create mode 100644 drivers/net/ethernet/intel/ice/ice_ethtool_common.h

--
2.38.1