RDMA/mlx5: Cache all user cacheable mkeys on dereg MR flow
[linux-2.6-microblaze.git] / drivers / infiniband / hw / mlx5 / mlx5_ib.h
index a9ef9d7..c9c80af 100644 (file)
@@ -630,6 +630,8 @@ struct mlx5_ib_mkey {
        unsigned int ndescs;
        struct wait_queue_head wait;
        refcount_t usecount;
+       /* User Mkey must hold either a rb_key or a cache_ent. */
+       struct mlx5r_cache_rb_key rb_key;
        struct mlx5_cache_ent *cache_ent;
 };