6#ifndef _RTE_EVENT_CRYPTO_ADAPTER_
7#define _RTE_EVENT_CRYPTO_ADAPTER_
284#define RTE_EVENT_CRYPTO_ADAPTER_EVENT_VECTOR 0x1
520 int32_t queue_pair_id,
541 int32_t queue_pair_id);
713 uint8_t dev_id, uint16_t cdev_id,
756static inline uint16_t
762 const struct rte_event_fp_ops *fp_ops;
765 fp_ops = &rte_event_fp_ops[dev_id];
766 port = fp_ops->data[port_id];
767#ifdef RTE_LIBRTE_EVENTDEV_DEBUG
768 if (dev_id >= RTE_EVENT_MAX_DEVS ||
769 port_id >= RTE_EVENT_MAX_PORTS_PER_DEV) {
779 rte_eventdev_trace_crypto_adapter_enqueue(dev_id, port_id, ev,
782 return fp_ops->ca_enqueue(port, ev, nb_events);
__rte_experimental int rte_event_crypto_adapter_runtime_params_set(uint8_t id, struct rte_event_crypto_adapter_runtime_params *params)
int rte_event_crypto_adapter_event_port_get(uint8_t id, uint8_t *event_port_id)
int rte_event_crypto_adapter_create(uint8_t id, uint8_t dev_id, struct rte_event_port_conf *port_config, enum rte_event_crypto_adapter_mode mode)
int rte_event_crypto_adapter_stop(uint8_t id)
int(* rte_event_crypto_adapter_conf_cb)(uint8_t id, uint8_t dev_id, struct rte_event_crypto_adapter_conf *conf, void *arg)
int rte_event_crypto_adapter_start(uint8_t id)
int rte_event_crypto_adapter_queue_pair_del(uint8_t id, uint8_t cdev_id, int32_t queue_pair_id)
static uint16_t rte_event_crypto_adapter_enqueue(uint8_t dev_id, uint8_t port_id, struct rte_event ev[], uint16_t nb_events)
__rte_experimental int rte_event_crypto_adapter_runtime_params_get(uint8_t id, struct rte_event_crypto_adapter_runtime_params *params)
rte_event_crypto_adapter_mode
@ RTE_EVENT_CRYPTO_ADAPTER_OP_FORWARD
@ RTE_EVENT_CRYPTO_ADAPTER_OP_NEW
int rte_event_crypto_adapter_create_ext(uint8_t id, uint8_t dev_id, rte_event_crypto_adapter_conf_cb conf_cb, enum rte_event_crypto_adapter_mode mode, void *conf_arg)
int rte_event_crypto_adapter_service_id_get(uint8_t id, uint32_t *service_id)
int rte_event_crypto_adapter_queue_pair_add(uint8_t id, uint8_t cdev_id, int32_t queue_pair_id, const struct rte_event_crypto_adapter_queue_conf *conf)
int rte_event_crypto_adapter_free(uint8_t id)
int rte_event_crypto_adapter_stats_reset(uint8_t id)
__rte_experimental int rte_event_crypto_adapter_runtime_params_init(struct rte_event_crypto_adapter_runtime_params *params)
int rte_event_crypto_adapter_vector_limits_get(uint8_t dev_id, uint16_t cdev_id, struct rte_event_crypto_adapter_vector_limits *limits)
int rte_event_crypto_adapter_stats_get(uint8_t id, struct rte_event_crypto_adapter_stats *stats)
uint64_t vector_timeout_ns
struct rte_mempool * vector_mp
uint64_t event_enq_fail_count
uint64_t crypto_deq_count
uint64_t event_enq_retry_count
uint64_t crypto_enq_count
uint64_t event_poll_count