NAME |SYNOPSIS |DESCRIPTION |ARGUMENTS |RETURN VALUE |SEE ALSO |AUTHOR |COLOPHON | |
mlx5dv_create_cq(3) mlx5 Programmer’s Manualmlx5dv_create_cq(3)mlx5dv_create_cq - creates a completion queue (CQ)
#include <infiniband/mlx5dv.h> struct ibv_cq_ex *mlx5dv_create_cq(struct ibv_context *context, struct ibv_cq_init_attr_ex *cq_attr, struct mlx5dv_cq_init_attr *mlx5_cq_attr);
mlx5dv_create_cq()creates a completion queue (CQ) with specific driver properties.
Please seeibv_create_cq_ex(3)man page forcontextandcq_attrmlx5_cq_attr struct mlx5dv_cq_init_attr { uint64_t comp_mask; uint8_t cqe_comp_res_format; uint32_t flags; uint16_t cqe_size; };comp_mask Bitmask specifying what fields in the structure are valid: MLX5DV_CQ_INIT_ATTR_MASK_COMPRESSED_CQE enables creating a CQ in a mode that few CQEs may be compressed into a single CQE, valid values incqe_comp_res_format MLX5DV_CQ_INIT_ATTR_MASK_FLAGS valid values inflags MLX5DV_CQ_INIT_ATTR_MASK_CQE_SIZE valid values incqe_sizecqe_comp_res_format A bitwise OR of the various CQE response formats of the responder side: MLX5DV_CQE_RES_FORMAT_HASH CQE compression with hash MLX5DV_CQE_RES_FORMAT_CSUM CQE compression with RX checksum MLX5DV_CQE_RES_FORMAT_CSUM_STRIDX CQE compression with stride indexflags A bitwise OR of the various values described below: MLX5DV_CQ_INIT_ATTR_FLAGS_CQE_PAD create a padded 128B CQEcqe_size configure the CQE size to be 64 or 128 bytes other values will fail mlx5dv_create_cq.mlx5dv_create_cq()returns a pointer to the created CQ, or NULL if the request fails and errno will be set.
ibv_create_cq_ex(3),
Yonatan Cohen ⟨yonatanc@mellanox.com⟩
This page is part of therdma-core (RDMA Core Userspace Libraries and Daemons) project. Information about the project can be found at ⟨https://github.com/linux-rdma/rdma-core⟩. If you have a bug report for this manual page, send it to linux-rdma@vger.kernel.org. This page was obtained from the project's upstream Git repository ⟨https://github.com/linux-rdma/rdma-core.git⟩ on 2025-08-11. (At that time, the date of the most recent commit that was found in the repository was 2025-08-04.) If you discover any rendering problems in this HTML version of the page, or you believe there is a better or more up-to-date source for the page, or you have corrections or improvements to the information in this COLOPHON (which isnot part of the original manual page), send a mail to man-pages@man7.orgmlx5 2018-9-1mlx5dv_create_cq(3)HTML rendering created 2025-09-06 byMichael Kerrisk, author ofThe Linux Programming Interface. For details of in-depthLinux/UNIX system programming training courses that I teach, lookhere. Hosting byjambit GmbH. | ![]() |