mlxsw: spectrum_kvdl: Push out KVD linear management into ops
authorJiri Pirko <jiri@mellanox.com>
Sun, 8 Jul 2018 20:51:16 +0000 (23:51 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Jul 2018 23:24:16 +0000 (16:24 -0700)
commitebcff74386e6fbfe1d5dc406b99db63481f9c2c7
treef53bbf1afe7cb8ee9edf21cb9ecf574025a71ea5
parenteec4edc9ee08fe5c2f219b4fab7aed71b409e196
mlxsw: spectrum_kvdl: Push out KVD linear management into ops

In Spectrum-2 there is a different implementation of KVD linear
management. Unlike in Spectrum where there is a single index space,
in Spectrum-2 the indexes are per-resource. Also there is need to
explicitly tell HW that an entry is no longer used.
So push out the existing implementation into spectrum1_kvdl.c and
prepare ops infrastructure to allow new implementation in a follow-up.

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