]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/mlx5: Merge similar flows of allocating MR from the cache
authorAharon Landau <aharonl@nvidia.com>
Tue, 15 Feb 2022 17:55:31 +0000 (19:55 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 23 Feb 2022 18:59:13 +0000 (14:59 -0400)
commitee4b6fc6559b5857591a4dc7ba65fd6e29141820
tree2339c32605555f558de47c0b3d6ed794f96272aa
parentef5a954efa6f8a4b647fa19928257d9e0ec67780
RDMA/mlx5: Merge similar flows of allocating MR from the cache

When allocating a MR from the cache, the driver calls to get_cache_mr(),
and in case of failure, retries with create_cache_mr(). This is the flow
of mlx5_mr_cache_alloc(), so use it instead.

Link: https://lore.kernel.org/r/53c85fcd4de6ec9de0b8e6cbb1bf5d5fe19900c3.1644947594.git.leonro@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
drivers/infiniband/hw/mlx5/odp.c