RDMA/mlx5: Introduce mlx5r_cache_rb_key
authorMichael Guralnik <michaelgur@nvidia.com>
Wed, 25 Jan 2023 22:28:05 +0000 (00:28 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 27 Jan 2023 17:04:09 +0000 (13:04 -0400)
commit73d09b2fe8336f5f37935e46418666ddbcd3c343
treecc2ef0f1196c2f25fcd4edea7e42b247beb3e8bc
parentb9584517832858a0f78d6851d09b697a829514cd
RDMA/mlx5: Introduce mlx5r_cache_rb_key

Switch from using the mkey order to using the new struct as the key to the
RB tree of cache entries.

The key is all the mkey properties that UMR operations can't modify.
Using this key to define the cache entries and to search and create cache
mkeys.

Link: https://lore.kernel.org/r/20230125222807.6921-5-michaelgur@nvidia.com
Signed-off-by: Michael Guralnik <michaelgur@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/mr.c
drivers/infiniband/hw/mlx5/odp.c