OSDN Git Service

mlxsw: core: Extend devlink health reporter with new events and parameters
authorDanielle Ratson <danieller@nvidia.com>
Mon, 20 Dec 2021 10:56:14 +0000 (12:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Dec 2021 11:32:21 +0000 (11:32 +0000)
commit239cdd3f4cb0fe87da95e9a64a41644ee5a744ec
tree3bb6ee75c85762ab8b2557d834abf3421e5c6acb
parente25c060c5f24b19d2596445c6d0cf40da6f13cc1
mlxsw: core: Extend devlink health reporter with new events and parameters

Extend the devlink health reporter registered by mlxsw to report new
health events and their related parameters. These are meant to aid in
debugging of hardware / firmware issues.

Beside the test event ('MLXSW_REG_MFDE_EVENT_ID_TEST') that is triggered
following the devlink health 'test' sub-command, the new events are used
to report the triggering of asserts in firmware code
('MLXSW_REG_MFDE_EVENT_ID_FW_ASSERT') and hardware issues
('MLXSW_REG_MFDE_EVENT_ID_FATAL_CAUSE').

Each event is accompanied with a severity parameter and per-event
parameters that are meant to help root cause the detected issue.

Signed-off-by: Danielle Ratson <danieller@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/core.c