]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
mlxsw: spectrum_kvdl: Pass entry type to alloc/free
authorJiri Pirko <jiri@mellanox.com>
Sun, 8 Jul 2018 20:51:17 +0000 (23:51 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Jul 2018 23:24:16 +0000 (16:24 -0700)
commit4b6b18692aec205b98dd333938b714af9d7aefe1
treef2d22dfb001c2f549c015ab5e44893a2a4d6a6b0
parentebcff74386e6fbfe1d5dc406b99db63481f9c2c7
mlxsw: spectrum_kvdl: Pass entry type to alloc/free

Future Spectrum-2 KVD linear manager implementation needs to know type
of the entry to alloc and free. So define the types in an enum and
pass it down to alloc and free functions. Once the entry type
is passed down, KVDL common part knows sizes of each entry types,
so replace size function arg with entry count.

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/spectrum.h
drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_flex_actions.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_kvdl.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_mr_tcam.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c