summaryrefslogtreecommitdiff
path: root/drivers/ras
diff options
context:
space:
mode:
authorAmit Cohen <amcohen@nvidia.com>2020-09-27 10:50:13 +0300
committerDavid S. Miller <davem@davemloft.net>2020-09-27 13:27:01 -0700
commit3bdbab3fee87e7d2b29a61ea55808ae9d993f1d2 (patch)
tree5861751ef8f17490555cf1284014e56999b1eb85 /drivers/ras
parentf21b1a646f812ccc2e56f0d5c804b64f0043ea78 (diff)
mlxsw: spectrum: Initialize netdev's module overheat counter
The overheat counter is a per-module counter, but it is exposed as part of the corresponding netdev's statistics. It should therefore be presented to user space relative to the netdev's lifetime. Query the counter just before registering the netdev, so that the value exposed to user space will be relative to this initial value. 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 'drivers/ras')
0 files changed, 0 insertions, 0 deletions