diff options
author | Jiri Pirko | 2018-07-08 22:51:18 +0200 |
---|---|---|
committer | David S. Miller | 2018-07-10 01:24:16 +0200 |
commit | 0304c00546fce74028ce5e3ea5990e784c67a8a3 (patch) | |
tree | 33b166a1963c7cc3f7df6f9936318a242c926367 /drivers/net/ethernet/mellanox/mlxsw/spectrum_kvdl.c | |
parent | mlxsw: spectrum_kvdl: Pass entry type to alloc/free (diff) | |
download | kernel-qcow2-linux-0304c00546fce74028ce5e3ea5990e784c67a8a3.tar.gz kernel-qcow2-linux-0304c00546fce74028ce5e3ea5990e784c67a8a3.tar.xz kernel-qcow2-linux-0304c00546fce74028ce5e3ea5990e784c67a8a3.zip |
mlxsw: spectrum_kvdl: Pass entry_count to free function
For the Spectrum-2 KVD linear manager implementation, entry_count will be
needed even for the free function. So pass it down.
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>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/spectrum_kvdl.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/spectrum_kvdl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_kvdl.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum_kvdl.c index 3f9130afe5ea..fd557585514d 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_kvdl.c +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_kvdl.c @@ -86,11 +86,12 @@ int mlxsw_sp_kvdl_alloc(struct mlxsw_sp *mlxsw_sp, void mlxsw_sp_kvdl_free(struct mlxsw_sp *mlxsw_sp, enum mlxsw_sp_kvdl_entry_type type, - int entry_index) + unsigned int entry_count, int entry_index) { struct mlxsw_sp_kvdl *kvdl = mlxsw_sp->kvdl; - kvdl->kvdl_ops->free(mlxsw_sp, kvdl->priv, type, entry_index); + kvdl->kvdl_ops->free(mlxsw_sp, kvdl->priv, type, + entry_count, entry_index); } int mlxsw_sp_kvdl_alloc_count_query(struct mlxsw_sp *mlxsw_sp, |