RDMA/mlx5: Simplify get_umr_update_access_mask()
authorAharon Landau <aharonl@nvidia.com>
Tue, 12 Apr 2022 07:23:59 +0000 (10:23 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 25 Apr 2022 14:53:00 +0000 (11:53 -0300)
commitba6a9c6899b2dce3c615ce9fac6bead976e43a48
tree359fa78665cc38cd32a6f2163715fd49fb8954cd
parent8a8a5d37c7b4334ede6e7121f7b0757ec7a2e2ed
RDMA/mlx5: Simplify get_umr_update_access_mask()

Instead of getting the update access capabilities each call to
get_umr_update_access_mask(), pass struct mlx5_ib_dev and get the
capabilities inside the function.

Link: https://lore.kernel.org/r/f22b8a84ef32e29ada26691f06b57e2ed5943b76.1649747695.git.leonro@nvidia.com
Signed-off-by: Aharon Landau <aharonl@nvidia.com>
Reviewed-by: Michael Guralnik <michaelgur@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/umr.c