mlxsw: spectrum_cnt: Move sub_pools under per-instance pool struct
authorJiri Pirko <jiri@mellanox.com>
Wed, 18 Mar 2020 13:48:51 +0000 (15:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Mar 2020 23:46:19 +0000 (16:46 -0700)
commitc33fbe949f9f27a74d11d919cb508fe0c0948568
treee61bb0a43941091c9696e02b0c99107a6bc8cc01
parent4d21ed2e3d6a7ca24afc531f693ebefa2549218d
mlxsw: spectrum_cnt: Move sub_pools under per-instance pool struct

Currently, the global static array of subpools is used. Make it
per-instance as multiple instances of the mlxsw driver can have
different values.

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