net/mlx5: Refactor mlx5_core_mr to mkey
[linux-2.6-block.git] / include / linux / mlx5 / qp.h
index e5bbcf06de9551ebc72a0e5c487ec8a368980912..cf031a3f16c583047d6c59389e7d57ce198356d1 100644 (file)
@@ -622,9 +622,9 @@ static inline struct mlx5_core_qp *__mlx5_qp_lookup(struct mlx5_core_dev *dev, u
        return radix_tree_lookup(&dev->priv.qp_table.tree, qpn);
 }
 
-static inline struct mlx5_core_mr *__mlx5_mr_lookup(struct mlx5_core_dev *dev, u32 key)
+static inline struct mlx5_core_mkey *__mlx5_mr_lookup(struct mlx5_core_dev *dev, u32 key)
 {
-       return radix_tree_lookup(&dev->priv.mr_table.tree, key);
+       return radix_tree_lookup(&dev->priv.mkey_table.tree, key);
 }
 
 struct mlx5_page_fault_resume_mbox_in {