mlxsw: spectrum_cnt: Add entry_size_res_id for each subpool and use it to query entry...
authorJiri Pirko <jiri@mellanox.com>
Wed, 18 Mar 2020 13:48:52 +0000 (15:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Mar 2020 23:46:19 +0000 (16:46 -0700)
commitb2d3e33c77cfcbb7ab3e7ab799200da357d408e1
tree904181428feac784d948231d01a43048a9ecdd9a
parentc33fbe949f9f27a74d11d919cb508fe0c0948568
mlxsw: spectrum_cnt: Add entry_size_res_id for each subpool and use it to query entry size

Add new field to subpool struct that would indicate which
resource id should be used to query the entry size for
the subpool from the device.

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