net/mlx5: Use aligned variable while allocating ICM memory
authorErez Shitrit <erezsh@mellanox.com>
Fri, 24 Apr 2020 19:45:04 +0000 (12:45 -0700)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 28 Apr 2020 19:45:10 +0000 (12:45 -0700)
commitdff8e2d15283dd92582ddeec25ca86e4cf2618c7
tree50a7e26ea960b2bda7c728de8952659c43e20ace
parent2b58f6d9df50f534fe465113b69de60a2ef0e74a
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>
drivers/infiniband/hw/mlx5/main.c
drivers/net/ethernet/mellanox/mlx5/core/lib/dm.c
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_icm_pool.c
include/linux/mlx5/driver.h