IB/mlx5: Improve MR check
[linux-2.6-block.git] / include / linux / mlx5 / driver.h
index b52d07491fe7a0f988b14b99dac438c52cd65336..cfa49bca009c5a4ac632301048c4c1c590e44e01 100644 (file)
@@ -394,11 +394,17 @@ struct mlx5_core_sig_ctx {
        u32                     sigerr_count;
 };
 
+enum {
+       MLX5_MKEY_MR = 1,
+       MLX5_MKEY_MW,
+};
+
 struct mlx5_core_mkey {
        u64                     iova;
        u64                     size;
        u32                     key;
        u32                     pd;
+       u32                     type;
 };
 
 #define MLX5_24BIT_MASK                ((1 << 24) - 1)