]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdde4b3165b8b5561bbfad59681857586f747b55a
treed16bd06b6ffa4e0aa753dbc7900abeef928369ad
parentba54dfc71168e4203dcbe032e54492650bd08bb4
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