RDMA: Clean MW allocation and free flows
authorLeon Romanovsky <leonro@mellanox.com>
Wed, 2 Sep 2020 08:16:22 +0000 (11:16 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 17 Sep 2020 17:04:32 +0000 (14:04 -0300)
commitd18bb3e15201918b8d07e85a6e010ca5ed28dad5
tree7d45bc870c3181f3513c4890ea359324b90a0414
parentb5de0c60cc30c2a3513c7188c73f3f29acc29234
RDMA: Clean MW allocation and free flows

Move allocation and destruction of memory windows under ib_core
responsibility and clean drivers to ensure that no updates to MW
ib_core structures are done in driver layer.

Link: https://lore.kernel.org/r/20200902081623.746359-2-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
16 files changed:
drivers/infiniband/core/device.c
drivers/infiniband/core/uverbs_cmd.c
drivers/infiniband/core/uverbs_main.c
drivers/infiniband/hw/cxgb4/iw_cxgb4.h
drivers/infiniband/hw/cxgb4/mem.c
drivers/infiniband/hw/cxgb4/provider.c
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_main.c
drivers/infiniband/hw/hns/hns_roce_mr.c
drivers/infiniband/hw/mlx4/main.c
drivers/infiniband/hw/mlx4/mlx4_ib.h
drivers/infiniband/hw/mlx4/mr.c
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/mr.c
include/rdma/ib_verbs.h