net/mlx5: Move device memory management to mlx5_core
authorAriel Levkovich <lariel@mellanox.com>
Thu, 29 Aug 2019 23:42:30 +0000 (23:42 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 2 Sep 2019 06:44:41 +0000 (23:44 -0700)
commitc9b9dcb430b3cd0ad2b04c360c4e528d73430481
treeffbbfc9522ccfbd64d101c2f24fabe914464c51e
parent00679b631eddaa0aa0ceba719fcb1f60c65da5a3
net/mlx5: Move device memory management to mlx5_core

Move the device memory allocation and deallocation commands
SW ICM memory to mlx5_core to expose this API for all
mlx5_core users.

This comes as preparation for supporting SW steering in kernel
where it will be required to allocate and register device
memory for direct rule insertion.

In addition, an API to register this device memory for future
remote access operations is introduced using the create_mkey
commands.

Signed-off-by: Ariel Levkovich <lariel@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/infiniband/hw/mlx5/cmd.c
drivers/infiniband/hw/mlx5/cmd.h
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/net/ethernet/mellanox/mlx5/core/Makefile
drivers/net/ethernet/mellanox/mlx5/core/lib/dm.c [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/main.c
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
include/linux/mlx5/driver.h