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)
commit9deef43ddfb1dfa5f42e4066610cfe606212b0a1
tree5aff4f8e62a06d857fe586f8398d17a30de46559
parent035226b964c820f65e201cdf123705a8f1d7c670
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