commit | bc9f6e94bcb5652860c1b3bc82ca27697c496b4d | [log] [tgz] |
---|---|---|
author | Petr Machata <petrm@mellanox.com> | Wed Oct 23 09:05:00 2019 +0300 |
committer | David S. Miller <davem@davemloft.net> | Wed Oct 23 21:31:31 2019 -0700 |
tree | 216bc4b55c6308b7bedf38524abe012f22ff8393 | |
parent | 914c4fc1b792dd963f9606b2e8b33e3d6606eb84 [diff] |
mlxsw: spectrum_buffers: Calculate the size of the main pool Instead of hard-coding the size of the largest pool, calculate it from the reported guaranteed shared buffer size and sizes of other pools (currently only the CPU port pool). Signed-off-by: Petr Machata <petrm@mellanox.com> Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>