]> 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)
commitee75d82208ed4f256ec917e96367eeb450642a63
tree50a7e26ea960b2bda7c728de8952659c43e20ace
parent24a20bde976bcd416811e53b06cb14f58031c9c6
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