summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorErez Shitrit <erezsh@mellanox.com>2020-04-24 12:45:04 -0700
committerSaeed Mahameed <saeedm@mellanox.com>2020-04-28 12:45:10 -0700
commitdff8e2d15283dd92582ddeec25ca86e4cf2618c7 (patch)
tree50a7e26ea960b2bda7c728de8952659c43e20ace /include
parent2b58f6d9df50f534fe465113b69de60a2ef0e74a (diff)
downloadlinux-dff8e2d15283dd92582ddeec25ca86e4cf2618c7.tar.bz2
net/mlx5: Use aligned variable while allocating ICM memory
The alignment value is part of the input structure, so use it and spare extra memory allocation when is not needed. Now, using the new ability when allocating icm for Direct-Rule insertion. Signed-off-by: Ariel Levkovich <lariel@mellanox.com> Signed-off-by: Erez Shitrit <erezsh@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mlx5/driver.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h
index b60e5ab7906b..b46537a81703 100644
--- a/include/linux/mlx5/driver.h
+++ b/include/linux/mlx5/driver.h
@@ -1080,7 +1080,8 @@ int mlx5_lag_query_cong_counters(struct mlx5_core_dev *dev,
struct mlx5_uars_page *mlx5_get_uars_page(struct mlx5_core_dev *mdev);
void mlx5_put_uars_page(struct mlx5_core_dev *mdev, struct mlx5_uars_page *up);
int mlx5_dm_sw_icm_alloc(struct mlx5_core_dev *dev, enum mlx5_sw_icm_type type,
- u64 length, u16 uid, phys_addr_t *addr, u32 *obj_id);
+ u64 length, u32 log_alignment, u16 uid,
+ phys_addr_t *addr, u32 *obj_id);
int mlx5_dm_sw_icm_dealloc(struct mlx5_core_dev *dev, enum mlx5_sw_icm_type type,
u64 length, u16 uid, phys_addr_t addr, u32 obj_id);