From: Leon Romanovsky <leonro@xxxxxxxxxxxx> Changelog: v2: Rewrote mlx5 part to avoid ib_xrcd allocation. v1: https://lore.kernel.org/lkml/20200623111531.1227013-1-leon@xxxxxxxxxx Changed ib_dealloc_xrcd_user() do not iterate over tgt list, because it is expected to be empty. v0: https://lore.kernel.org/lkml/20200621104110.53509-1-leon@xxxxxxxxxx Two small patches to simplify and improve XRC logic. Thanks Leon Romanovsky (1): RDMA/mlx5: Get XRCD number directly for the internal use Maor Gottlieb (2): RDMA/core: Clean ib_alloc_xrcd() and reuse it to allocate XRC domain RDMA/core: Optimize XRC target lookup drivers/infiniband/core/uverbs_cmd.c | 12 ++--- drivers/infiniband/core/verbs.c | 81 ++++++++++++++-------------- drivers/infiniband/hw/mlx5/main.c | 39 +++++--------- drivers/infiniband/hw/mlx5/mlx5_ib.h | 4 +- drivers/infiniband/hw/mlx5/qp.c | 10 ++-- drivers/infiniband/hw/mlx5/srq.c | 4 +- include/rdma/ib_verbs.h | 23 ++------ 7 files changed, 70 insertions(+), 103 deletions(-) -- 2.26.2