net/mlx5_core: Identify resources by their type
[linux-2.6-block.git] / include / linux / mlx5 / qp.h
index f829ad80ff28fc38883025c4e06c4247ba908edd..7c4c0f1f58054c3f4c9ad96f396eec079c07eb9c 100644 (file)
@@ -146,6 +146,7 @@ enum {
 
 enum {
        MLX5_QP_LAT_SENSITIVE   = 1 << 28,
+       MLX5_QP_BLOCK_MCAST     = 1 << 30,
        MLX5_QP_ENABLE_SIG      = 1 << 31,
 };
 
@@ -341,10 +342,9 @@ struct mlx5_stride_block_ctrl_seg {
 };
 
 struct mlx5_core_qp {
+       struct mlx5_core_rsc_common     common; /* must be first */
        void (*event)           (struct mlx5_core_qp *, int);
        int                     qpn;
-       atomic_t                refcount;
-       struct completion       free;
        struct mlx5_rsc_debug   *dbg;
        int                     pid;
 };