diff options
author | Nogah Frankel <nogahf@mellanox.com> | 2017-10-26 10:55:32 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-27 23:25:55 +0900 |
commit | 9deef43ddfb1dfa5f42e4066610cfe606212b0a1 (patch) | |
tree | 5aff4f8e62a06d857fe586f8398d17a30de46559 /drivers/net/ethernet/mellanox/mlxsw/spectrum.h | |
parent | 035226b964c820f65e201cdf123705a8f1d7c670 (diff) | |
download | op-kernel-dev-9deef43ddfb1dfa5f42e4066610cfe606212b0a1.zip op-kernel-dev-9deef43ddfb1dfa5f42e4066610cfe606212b0a1.tar.gz |
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>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/spectrum.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/spectrum.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum.h b/drivers/net/ethernet/mellanox/mlxsw/spectrum.h index dc1b739..aa0cefb 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum.h +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum.h @@ -231,9 +231,9 @@ struct mlxsw_sp_port { struct list_head mall_tc_list; struct { #define MLXSW_HW_STATS_UPDATE_TIME HZ - struct rtnl_link_stats64 *cache; + struct rtnl_link_stats64 stats; struct delayed_work update_dw; - } hw_stats; + } periodic_hw_stats; struct mlxsw_sp_port_sample *sample; struct list_head vlans_list; }; |