Mark all CQEs initially as invalid. */
| 36 | |
| 37 | /* Mark all CQEs initially as invalid. */ |
| 38 | static void |
| 39 | mlx5_cq_init(struct mlx5_devx_cq *cq_obj, uint16_t cq_size) |
| 40 | { |
| 41 | volatile struct mlx5_cqe *cqe = cq_obj->cqes; |
| 42 | uint16_t i; |
| 43 | |
| 44 | for (i = 0; i < cq_size; i++, cqe++) { |
| 45 | cqe->op_own = (MLX5_CQE_INVALID << 4) | MLX5_CQE_OWNER_MASK; |
| 46 | cqe->validity_iteration_count = MLX5_CQE_VIC_INIT; |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | /** |
| 51 | * Create Completion Queue using DevX API. |
no outgoing calls
no test coverage detected