mlxsw: spectrum_buffers: Keep shared buffer size in mlxsw_sp_sb
authorPetr Machata <petrm@mellanox.com>
Thu, 20 Sep 2018 06:21:27 +0000 (09:21 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Sep 2018 14:46:01 +0000 (07:46 -0700)
commitfe07d723c00db23c1683a994fd57cc9b2aa9aaa2
treed16bd06b6ffa4e0aa753dbc7900abeef928369ad
parent5f95d20b3a5ed571e14f9007c4346ebac76a0f58
mlxsw: spectrum_buffers: Keep shared buffer size in mlxsw_sp_sb

Entities of infinite size will be reported as if they had the maximum
size allowed by the chip. To that end, keep track of maximum shared
buffer size in mlxsw_sp->sb.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Reviewed-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_buffers.c