mlxsw: spectrum_ethtool: Expose transceiver_overheat counter
authorAmit Cohen <amcohen@nvidia.com>
Sun, 27 Sep 2020 07:50:15 +0000 (10:50 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 27 Sep 2020 20:27:01 +0000 (13:27 -0700)
commit69f6d4ee68198f62db570342245b979820c9eed5
tree3689c2fbc11e8bd2576a07c0805c52905e6109e8
parent05cf5828bc8e18fcff095222395e188766683409
mlxsw: spectrum_ethtool: Expose transceiver_overheat counter

Add structures for port statistics which read from core and not directly
from registers.

When netdev's ethtool statistics are queried, query the corresponding
module's overheat counter from core and expose it as
"transceiver_overheat".

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c