RDMA/mlx5: Don't keep umrable 'page_shift' in cache entries
authorAharon Landau <aharonl@nvidia.com>
Wed, 25 Jan 2023 22:28:02 +0000 (00:28 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 27 Jan 2023 17:04:09 +0000 (13:04 -0400)
commita2a88b8e22d1b202225d0e40b02ad068afab2ccb
treee8cb6477c2da02293e9b790fab3f884672045079
parent592627ccbdff0ec6fff00fc761142a76db750dd4
RDMA/mlx5: Don't keep umrable 'page_shift' in cache entries

mkc.log_page_size can be changed using UMR. Therefore, don't treat it as a
cache entry property.

Removing it from struct mlx5_cache_ent.

All cache mkeys will be created with default PAGE_SHIFT, and updated with
the needed page_shift using UMR when passing them to a user.

Link: https://lore.kernel.org/r/20230125222807.6921-2-michaelgur@nvidia.com
Signed-off-by: Aharon Landau <aharonl@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