From: Leon Romanovsky <leonro@xxxxxxxxxx> Changelog: v4: * Rebased on latest for-upstream, all that time the patches were in our regression and didn't introduce any issues. * Took first five patches that hadn't any comments v3: https://lore.kernel.org/lkml/20200926101938.2964394-1-leon@xxxxxxxxxx * Rebased on already accepted patches. * Added mlx4 special QPs to the list of not-tracked QPs (dropped previous mlx4 special QP patch). * Separated to two patches change in return value of cma_listen_* routines. * Changed commit messages and added Fixes as Jason requested. v2: https://lore.kernel.org/linux-rdma/20200907122156.478360-1-leon@xxxxxxxxxx/ * Added new patch to fix mlx4 failure on SR-IOV, it didn't have port set. * Changed "RDMA/cma: Delete from restrack DB after successful destroy" patch. v1: https://lore.kernel.org/lkml/20200830101436.108487-1-leon@xxxxxxxxxx * Fixed rebase error, deleted second assignment of qp_type. * Rebased code on latests rdma-next, the changes in cma.c caused to change in patch "RDMA/cma: Delete from restrack DB after successful destroy". * Dropped patch of port assignment, it is already done as part of this series. * I didn't add @calller description, regular users should not use _named() funciton. v0: https://lore.kernel.org/lkml/20200824104415.1090901-1-leon@xxxxxxxxxx ---------------------------------------------------------------------------------- Simple resend of already posted series. https://lore.kernel.org/lkml/20200926101938.2964394-1-leon@xxxxxxxxxx Thanks Leon Romanovsky (5): RDMA/core: Allow drivers to disable restrack DB RDMA/counter: Combine allocation and bind logic RDMA/restrack: Store all special QPs in restrack DB RDMA/cma: Add missing error handling of listen_id RDMA/cma: Be strict with attaching to CMA device drivers/infiniband/core/cma.c | 217 +++++++++++++++++----------- drivers/infiniband/core/core_priv.h | 2 + drivers/infiniband/core/counters.c | 132 ++++++++--------- drivers/infiniband/core/restrack.c | 23 ++- drivers/infiniband/hw/mlx4/qp.c | 5 + drivers/infiniband/hw/mlx5/qp.c | 2 +- include/rdma/restrack.h | 24 +++ 7 files changed, 239 insertions(+), 166 deletions(-) -- 2.28.0