]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Change stats cache to be local
authorNogah Frankel <nogahf@mellanox.com>
Thu, 26 Oct 2017 08:55:32 +0000 (10:55 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Oct 2017 14:25:55 +0000 (23:25 +0900)
commitbceb8af0d2f589ee4709897d73578c5069c9facf
tree5aff4f8e62a06d857fe586f8398d17a30de46559
parent7718130d137ffeeef6e6988307fc61e182147051
mlxsw: spectrum: Change stats cache to be local

Change the HW stats cache to be local. Rename it for better clarity.
It holds the results of the last result of HW stats that are being read
periodically, in order to have answer for stats request immediately.

Signed-off-by: Nogah Frankel <nogahf@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
drivers/net/ethernet/mellanox/mlxsw/spectrum.h