mlxsw: spectrum_cnt: Expose devlink resource occupancy for counters
authorJiri Pirko <jiri@mellanox.com>
Wed, 18 Mar 2020 13:48:56 +0000 (15:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Mar 2020 23:46:19 +0000 (16:46 -0700)
commit4e145fc6eba217943b2972d4db8f32f62bfdf1b3
treee2c251030961cfaf491a3df6ccf1d0944d9084f3
parent53d963669466e472f2a271a3bfcc71af356b2650
mlxsw: spectrum_cnt: Expose devlink resource occupancy for counters

Implement occupancy counting for counters and expose over devlink
resource API.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_cnt.c