mbox series

[v2,rdma-next,0/6] RDMA/mlx5: Switch MR cache to use RB-tree

Message ID 20221207085752.82458-1-michaelgur@nvidia.com (mailing list archive)
Headers show
Series RDMA/mlx5: Switch MR cache to use RB-tree | expand

Message

Michael Guralnik Dec. 7, 2022, 8:57 a.m. UTC
This series moves the MR cache to use RB tree to store the entries of the
cache. By doing so, enabling more flexibility when managing the cache
entries.

The MR cache will now cache mkeys returned by the user even if they are
not from one of the predefined pools, by that allowing restarting
applications to reuse their released mkey and improve restart times.

v1->v2:
- Rearrange patch order to first introduce the RB-tree and only then
  introduce the caching of previously non-cachable mkeys

v0->v1:
- Fix rb tree search from memcmp to dedicated cmp function
- Rewording of some commit messages

Aharon Landau (2):
  RDMA/mlx5: Don't keep umrable 'page_shift' in cache entries
  RDMA/mlx5: Remove explicit ODP cache entry

Michael Guralnik (4):
  RDMA/mlx5: Change the cache structure to an RB-tree
  RDMA/mlx5: Introduce mlx5r_cache_rb_key
  RDMA/mlx5: Cache all user cacheable mkeys on dereg MR flow
  RDMA/mlx5: Add work to remove temporary entries from the cache

 drivers/infiniband/hw/mlx5/mlx5_ib.h |  42 ++-
 drivers/infiniband/hw/mlx5/mr.c      | 445 +++++++++++++++++++++------
 drivers/infiniband/hw/mlx5/odp.c     |  37 +--
 include/linux/mlx5/driver.h          |   1 -
 4 files changed, 394 insertions(+), 131 deletions(-)