]> 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)
commit0a0cd30933fef2eabe397123c435bcb16a7f8930
tree5aff4f8e62a06d857fe586f8398d17a30de46559
parentcc6a742206b77c8c5c573b70cf1f93f47d7c3284
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