]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2aa170f194b21191732b3bfe2da2b18e50093cd6
tree50a7e26ea960b2bda7c728de8952659c43e20ace
parent0813ce610a61b32ac8934bff3d9a6e420c44197f
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