|
@@ -757,10 +757,6 @@ static void destroy_cq_kernel(struct mlx5_ib_dev *dev, struct mlx5_ib_cq *cq)
|
|
mlx5_db_free(dev->mdev, &cq->db);
|
|
mlx5_db_free(dev->mdev, &cq->db);
|
|
}
|
|
}
|
|
|
|
|
|
-enum {
|
|
|
|
- CQ_CREATE_FLAGS_SUPPORTED = IB_CQ_FLAGS_TIMESTAMP_COMPLETION
|
|
|
|
-};
|
|
|
|
-
|
|
|
|
struct ib_cq *mlx5_ib_create_cq(struct ib_device *ibdev,
|
|
struct ib_cq *mlx5_ib_create_cq(struct ib_device *ibdev,
|
|
const struct ib_cq_init_attr *attr,
|
|
const struct ib_cq_init_attr *attr,
|
|
struct ib_ucontext *context,
|
|
struct ib_ucontext *context,
|
|
@@ -778,13 +774,10 @@ struct ib_cq *mlx5_ib_create_cq(struct ib_device *ibdev,
|
|
int eqn;
|
|
int eqn;
|
|
int err;
|
|
int err;
|
|
|
|
|
|
- if (check_cq_create_flags(attr->flags))
|
|
|
|
- return ERR_PTR(-EINVAL);
|
|
|
|
-
|
|
|
|
if (entries < 0)
|
|
if (entries < 0)
|
|
return ERR_PTR(-EINVAL);
|
|
return ERR_PTR(-EINVAL);
|
|
|
|
|
|
- if (attr->flags & ~CQ_CREATE_FLAGS_SUPPORTED)
|
|
|
|
|
|
+ if (check_cq_create_flags(attr->flags))
|
|
return ERR_PTR(-EOPNOTSUPP);
|
|
return ERR_PTR(-EOPNOTSUPP);
|
|
|
|
|
|
entries = roundup_pow_of_two(entries + 1);
|
|
entries = roundup_pow_of_two(entries + 1);
|