mlxsw: Introduce simplistic KVD linear area manager
commitb090ef068645d6a9e69f04e571a3dcb32eb37d81
authorJiri Pirko <jiri@mellanox.com>
Tue, 5 Jul 2016 09:27:47 +0000 (5 11:27 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Jul 2016 16:06:30 +0000 (5 09:06 -0700)
treec7441d12a48e3ae83c19f0af199d305f13e08a44
parentc602242761dff9f698e16f3ab474e48da1b83f8f
mlxsw: Introduce simplistic KVD linear area manager

This is a very simple manager for KVD linear area. Currently, the
allocator will either allocate a single entry from pre-defined sub-area,
or in case more than one entry is needed, it will allocate 32-entry chunk
in other pre-defined sub-area.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-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/spectrum_kvdl.c [new file with mode: 0644]