mlxsw: spectrum_kvdl: Add support for linear division resources
authorArkadi Sharshevsky <arkadis@mellanox.com>
Tue, 20 Feb 2018 07:44:22 +0000 (08:44 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Feb 2018 18:38:55 +0000 (13:38 -0500)
commit51d3c08e33712e4867970fc5bafc73df3265ed04
tree6145e6fa303c7edbd930a5fe2188f8075c3a8183
parent4f4bbf7c4e3d4bd14987a13041c6b5b1ea59e21f
mlxsw: spectrum_kvdl: Add support for linear division resources

The linear part of the KVD memory is sub-divided into multiple parts. This
patch exposes this internal partitions via the resource interface.

Signed-off-by: Arkadi Sharshevsky <arkadis@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.c
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_kvdl.c