On 5/28/2019 7:37 AM, Leon Romanovsky wrote:
From: Leon Romanovsky <leonro@xxxxxxxxxxxx> Ensure that CQ is allocated and freed by IB/core and not by drivers. Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxxxx> --- drivers/infiniband/core/cq.c | 28 +++++---- drivers/infiniband/core/device.c | 1 + drivers/infiniband/core/uverbs_cmd.c | 15 +++-- drivers/infiniband/core/uverbs_std_types_cq.c | 19 ++++-- drivers/infiniband/core/verbs.c | 32 ++++++---- drivers/infiniband/hw/bnxt_re/ib_verbs.c | 20 +++---- drivers/infiniband/hw/bnxt_re/ib_verbs.h | 7 +-- drivers/infiniband/hw/bnxt_re/main.c | 1 + drivers/infiniband/hw/cxgb3/iwch_provider.c | 43 ++++++------- drivers/infiniband/hw/cxgb4/cq.c | 27 ++++----- drivers/infiniband/hw/cxgb4/iw_cxgb4.h | 5 +- drivers/infiniband/hw/cxgb4/provider.c | 1 + drivers/infiniband/hw/efa/efa.h | 5 +- drivers/infiniband/hw/efa/efa_main.c | 1 + drivers/infiniband/hw/efa/efa_verbs.c | 50 +++++----------- drivers/infiniband/hw/hns/hns_roce_cq.c | 23 +++---- drivers/infiniband/hw/hns/hns_roce_device.h | 6 +- drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 21 ++++--- drivers/infiniband/hw/hns/hns_roce_main.c | 1 + drivers/infiniband/hw/i40iw/i40iw_verbs.c | 33 ++++------ drivers/infiniband/hw/mlx4/cq.c | 25 +++----- drivers/infiniband/hw/mlx4/main.c | 1 + drivers/infiniband/hw/mlx4/mlx4_ib.h | 5 +- drivers/infiniband/hw/mlx5/cq.c | 32 ++++------ drivers/infiniband/hw/mlx5/main.c | 21 ++++--- drivers/infiniband/hw/mlx5/mlx5_ib.h | 5 +- drivers/infiniband/hw/mthca/mthca_provider.c | 36 +++++------ drivers/infiniband/hw/nes/nes_verbs.c | 60 +++++++------------ drivers/infiniband/hw/ocrdma/ocrdma_main.c | 1 + drivers/infiniband/hw/ocrdma/ocrdma_verbs.c | 29 ++++----- drivers/infiniband/hw/ocrdma/ocrdma_verbs.h | 5 +- drivers/infiniband/hw/qedr/main.c | 1 + drivers/infiniband/hw/qedr/verbs.c | 28 +++------ drivers/infiniband/hw/qedr/verbs.h | 5 +- drivers/infiniband/hw/usnic/usnic_ib.h | 4 ++ drivers/infiniband/hw/usnic/usnic_ib_main.c | 1 + drivers/infiniband/hw/usnic/usnic_ib_verbs.c | 18 ++---- drivers/infiniband/hw/usnic/usnic_ib_verbs.h | 5 +- drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c | 34 ++++------- .../infiniband/hw/vmw_pvrdma/pvrdma_main.c | 1 + .../infiniband/hw/vmw_pvrdma/pvrdma_verbs.h | 5 +- drivers/infiniband/sw/rdmavt/cq.c | 51 +++++----------- drivers/infiniband/sw/rdmavt/cq.h | 5 +- drivers/infiniband/sw/rdmavt/vt.c | 1 + drivers/infiniband/sw/rxe/rxe_pool.c | 1 + drivers/infiniband/sw/rxe/rxe_verbs.c | 30 ++++------ drivers/infiniband/sw/rxe/rxe_verbs.h | 2 +- include/rdma/ib_verbs.h | 6 +- 48 files changed, 319 insertions(+), 438 deletions(-)
For the rdmavt parts: Reviewed-by: Dennis Dalessandro <dennis.dalessandro@xxxxxxxxx> Tested-by: Dennis Dalessandro <dennis.dalessandro@xxxxxxxxx>