]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Add KVDL manager implementation for Spectrum-2
authorJiri Pirko <jiri@mellanox.com>
Wed, 18 Jul 2018 08:14:31 +0000 (11:14 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Jul 2018 17:13:13 +0000 (02:13 +0900)
commit4de0b02c85929864cc4a1a0b238700d59456afc2
tree816a306b6d9689de084894756c5bf7df3a437105
parent34a16da7afe966be8b8ea2270ed48c31f9c7de52
mlxsw: spectrum: Add KVDL manager implementation for Spectrum-2

In Spectrum-2, KVD linear indexes are hashed into KVD hash. Therefore it
is possible for multiple resource types to use same indexes. There are
multiple index spaces. Also, the index space is bigger than the actual
KVD hash area, which allows to have holes in the index space without any
penalization. The HW has to be told in case the index for particular
resource type is no longer used so it can be freed from KVD hash. IEDR
register is used for that.

Signed-off-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/Makefile
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
drivers/net/ethernet/mellanox/mlxsw/spectrum2_kvdl.c [new file with mode: 0644]