RDMA/mlx5: Store in the cache mkeys instead of mrs
authorAharon Landau <aharonl@nvidia.com>
Tue, 26 Jul 2022 07:19:10 +0000 (10:19 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 27 Jul 2022 17:45:48 +0000 (14:45 -0300)
commit6b7533869523ae58e2b914551305b0e47cbeb247
tree0970d993ab76cb8e90fcdf62be2db32bf4dfb1f6
parent19591f134c59703dfc272356808e6fe2037d0d40
RDMA/mlx5: Store in the cache mkeys instead of mrs

Currently, the driver stores mlx5_ib_mr struct in the cache entries,
although the only use of the cached MR is the mkey. Store only the mkey in
the cache.

Link: https://lore.kernel.org/r/20220726071911.122765-5-michaelgur@nvidia.com
Signed-off-by: Aharon Landau <aharonl@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/mr.c