diff options
author | 2020-09-27 10:50:10 +0300 | |
---|---|---|
committer | 2020-09-27 13:27:00 -0700 | |
commit | 0652ac07756588d6f1aa8419f569b5894a149d6e (patch) | |
tree | d30b0b3ab5bf00f1009a8f430e32c4ca44845108 /tools/perf/scripts/python/stackcollapse.py | |
parent | mlxsw: core_hwmon: Query MTMP before writing to set only relevant fields (diff) | |
download | wireguard-linux-0652ac07756588d6f1aa8419f569b5894a149d6e.tar.xz wireguard-linux-0652ac07756588d6f1aa8419f569b5894a149d6e.zip |
mlxsw: core: Add an infrastructure to track transceiver overheat counter
Initialize an array that stores per-module overheat state and a counter
indicating how many times the module was in overheat state.
Export a function to query the counter according to module number.
Will be used later on by the switch driver (i.e., mlxsw_spectrum) to expose
module's overheat counter as part of ethtool statistics.
Initialize mlxsw_env after driver initialization to be able to query
number of modules from MGPIR register.
Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions