26 #ifndef DOCA_COMCH_MSGQ_H_
27 #define DOCA_COMCH_MSGQ_H_
39 struct doca_comch_msgq;
40 struct doca_comch_producer;
41 struct doca_comch_consumer;
DOCA_EXPERIMENTAL doca_error_t doca_comch_msgq_create(struct doca_dev *dev, struct doca_comch_msgq **msgq)
Create a DOCA Comch MsgQ instance.
DOCA_EXPERIMENTAL doca_error_t doca_comch_msgq_producer_create(struct doca_comch_msgq *msgq, struct doca_comch_producer **producer)
Create a DOCA Comch producer instance.
DOCA_EXPERIMENTAL doca_error_t doca_comch_msgq_consumer_create(struct doca_comch_msgq *msgq, struct doca_comch_consumer **consumer)
Create a DOCA Comch consumer instance.
DOCA_EXPERIMENTAL doca_error_t doca_comch_msgq_set_dpa_producer(struct doca_comch_msgq *msgq, struct doca_dpa *dpa)
Set producers to DPA. All producers on this MsgQ will be created for DPA.
DOCA_EXPERIMENTAL doca_error_t doca_comch_msgq_set_max_num_consumers(struct doca_comch_msgq *msgq, uint32_t max_num_consumers)
Set the maximal number of consumers that can be created using this MsgQ.
DOCA_EXPERIMENTAL doca_error_t doca_comch_msgq_set_dpa_consumer(struct doca_comch_msgq *msgq, struct doca_dpa *dpa)
Set consumers to DPA. All consumers on this MsgQ will be created for DPA.
DOCA_EXPERIMENTAL doca_error_t doca_comch_msgq_stop(struct doca_comch_msgq *msgq)
Stop DOCA Comch MsgQ.
DOCA_EXPERIMENTAL doca_error_t doca_comch_msgq_set_max_num_producers(struct doca_comch_msgq *msgq, uint32_t max_num_producers)
Set the maximal number of producers that can be created using this MsgQ.
DOCA_EXPERIMENTAL doca_error_t doca_comch_msgq_start(struct doca_comch_msgq *msgq)
Start DOCA Comch MsgQ.
DOCA_EXPERIMENTAL doca_error_t doca_comch_msgq_destroy(struct doca_comch_msgq *msgq)
Destroy a DOCA Comch MsgQ instance.
#define DOCA_EXPERIMENTAL
To set a Symbol (or specifically a function) as experimental.
enum doca_error doca_error_t
DOCA API return codes.