cq->ibcq.cqe = entries - 1;
mutex_init(&cq->resize_mutex);
spin_lock_init(&cq->lock);
- cq->create_flags = attr->flags;
INIT_LIST_HEAD(&cq->send_qp_list);
INIT_LIST_HEAD(&cq->recv_qp_list);
err = mlx4_cq_alloc(dev->dev, entries, &cq->buf.mtt, &context->uar,
cq->db.dma, &cq->mcq, vector, 0,
- !!(cq->create_flags &
- IB_UVERBS_CQ_FLAGS_TIMESTAMP_COMPLETION),
+ attr->flags & IB_UVERBS_CQ_FLAGS_TIMESTAMP_COMPLETION,
buf_addr, true);
if (err)
goto err_dbmap;
spinlock_t lock;
struct mutex resize_mutex;
struct ib_umem *resize_umem;
- int create_flags;
/* List of qps that it serves.*/
struct list_head send_qp_list;
struct list_head recv_qp_list;