]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Reduce number of supported 802.1D bridges
authorIdo Schimmel <idosch@mellanox.com>
Tue, 5 Apr 2016 08:20:02 +0000 (10:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Apr 2016 19:07:54 +0000 (15:07 -0400)
commit35763f7926f923ef7998c42422f75dffe5fffef1
tree748e395dedf3557920a0058e484ad8e22fc1b4cd
parent33f6bc06b2dfc3e1276f1e3e3f6749442e1a9996
mlxsw: spectrum: Reduce number of supported 802.1D bridges

Resources allocated for these bridges at init time cannot be later used
for other purposes. While current number is supported by the device,
it's mostly theoretical with regards to any real use case, which leads
to poor utilization of device's resources. Solve that by reducing the
number.

The long term plan is to make this value (along with others) user
configurable via devlink and write it to NVRAM, so that it can be used
during the next init. Until then we must hardcode such values.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.h