]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd8363665618fe602b6fdddec1cde9ee648c9fcf8
treee61bb0a43941091c9696e02b0c99107a6bc8cc01
parentb6d5407ba7b631d55934aa253f8f762c5f37e95c
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