aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mlx5/umr.h
diff options
context:
space:
mode:
authorAharon Landau <aharonl@nvidia.com>2022-04-12 10:24:02 +0300
committerJason Gunthorpe <jgg@nvidia.com>2022-04-25 11:53:00 -0300
commit33e8aa8e049811de87cd1c16a2ead85e0c9f9606 (patch)
treef7ed24a24365e312dfb418b3f6b0956d4df45d03 /drivers/infiniband/hw/mlx5/umr.h
parentRDMA/mlx5: Introduce mlx5_umr_post_send_wait() (diff)
downloadlinux-dev-33e8aa8e049811de87cd1c16a2ead85e0c9f9606.tar.xz
linux-dev-33e8aa8e049811de87cd1c16a2ead85e0c9f9606.zip
RDMA/mlx5: Use mlx5_umr_post_send_wait() to revoke MRs
Move the revoke_mr logic to umr.c, and using mlx5_umr_post_send_wait() instead of mlx5_ib_post_send_wait(). In the new implementation, do not zero out the access flags. Before reusing the MR, we will update it to the required access. Link: https://lore.kernel.org/r/63717dfdaf6007f81b3e6dbf598f5bf3875ce86f.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>
Diffstat (limited to '')
-rw-r--r--drivers/infiniband/hw/mlx5/umr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mlx5/umr.h b/drivers/infiniband/hw/mlx5/umr.h
index d984213caf60..c14072b06ffb 100644
--- a/drivers/infiniband/hw/mlx5/umr.h
+++ b/drivers/infiniband/hw/mlx5/umr.h
@@ -91,4 +91,6 @@ struct mlx5r_umr_wqe {
struct mlx5_wqe_data_seg data_seg;
};
+int mlx5r_umr_revoke_mr(struct mlx5_ib_mr *mr);
+
#endif /* _MLX5_IB_UMR_H */