mlxsw: spectrum: Collect tclass related stats periodically
authorNogah Frankel <nogahf@mellanox.com>
Mon, 6 Nov 2017 06:23:47 +0000 (07:23 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Nov 2017 03:23:38 +0000 (12:23 +0900)
commit075ab8adaf4e7443159bee6412cb85434c63ed15
tree9c2a28e8e219d5585b7e53b17b51aa4e3c72b30b
parent0afc1221ffecbbe4a9fdd6b46697cc7c31ecf8aa
mlxsw: spectrum: Collect tclass related stats periodically

Add more statistics to be collected from the HW periodically. These stats
are tclass based (beside ECN marked packet, that exist only port based).
They are needed to expose RED qdisc stats and xstats correctly.

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