diff options
author | Amit Cohen <amcohen@nvidia.com> | 2020-09-27 10:50:10 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-27 13:27:00 -0700 |
commit | 0652ac07756588d6f1aa8419f569b5894a149d6e (patch) | |
tree | d30b0b3ab5bf00f1009a8f430e32c4ca44845108 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | fb1292f821cce8df765be15b2a1b8ebe9a6e304e (diff) |
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/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions