DPDK  18.11.6
rte_event_crypto_adapter.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2018 Intel Corporation.
3  * All rights reserved.
4  */
5 
6 #ifndef _RTE_EVENT_CRYPTO_ADAPTER_
7 #define _RTE_EVENT_CRYPTO_ADAPTER_
8 
167 #ifdef __cplusplus
168 extern "C" {
169 #endif
170 
171 #include <stdint.h>
172 
173 #include "rte_eventdev.h"
174 
198 };
199 
208  uint8_t resv[8];
213  uint16_t cdev_id;
215  uint16_t queue_pair_id;
217  uint32_t resv1;
219 };
220 
244 };
245 
255  uint8_t event_port_id;
260  uint32_t max_nb;
265 };
266 
291 typedef int (*rte_event_crypto_adapter_conf_cb) (uint8_t id, uint8_t dev_id,
292  struct rte_event_crypto_adapter_conf *conf,
293  void *arg);
294 
306  uint64_t event_deq_count;
310  uint64_t crypto_enq_fail;
314  uint64_t event_enq_count;
320 };
321 
350 int __rte_experimental
351 rte_event_crypto_adapter_create_ext(uint8_t id, uint8_t dev_id,
354  void *conf_arg);
355 
386 int __rte_experimental
387 rte_event_crypto_adapter_create(uint8_t id, uint8_t dev_id,
388  struct rte_event_port_conf *port_config,
390 
405 int __rte_experimental
407 
433 int __rte_experimental
435  uint8_t cdev_id,
436  int32_t queue_pair_id,
437  const struct rte_event *event);
438 
458 int __rte_experimental
459 rte_event_crypto_adapter_queue_pair_del(uint8_t id, uint8_t cdev_id,
460  int32_t queue_pair_id);
461 
476 int __rte_experimental
478 
492 int __rte_experimental
494 
511 int __rte_experimental
513  struct rte_event_crypto_adapter_stats *stats);
514 
528 int __rte_experimental
530 
549 int __rte_experimental
550 rte_event_crypto_adapter_service_id_get(uint8_t id, uint32_t *service_id);
551 
569 int __rte_experimental
570 rte_event_crypto_adapter_event_port_get(uint8_t id, uint8_t *event_port_id);
571 
572 #ifdef __cplusplus
573 }
574 #endif
575 #endif /* _RTE_EVENT_CRYPTO_ADAPTER_ */
rte_event_crypto_request::resv
uint8_t resv[8]
Definition: rte_event_crypto_adapter.h:208
rte_event_crypto_adapter_queue_pair_del
int __rte_experimental rte_event_crypto_adapter_queue_pair_del(uint8_t id, uint8_t cdev_id, int32_t queue_pair_id)
rte_event_crypto_adapter_conf_cb
int(* rte_event_crypto_adapter_conf_cb)(uint8_t id, uint8_t dev_id, struct rte_event_crypto_adapter_conf *conf, void *arg)
Definition: rte_event_crypto_adapter.h:291
rte_event_crypto_adapter_start
int __rte_experimental rte_event_crypto_adapter_start(uint8_t id)
rte_event_crypto_adapter_conf::max_nb
uint32_t max_nb
Definition: rte_event_crypto_adapter.h:260
rte_event_crypto_adapter_stats::event_enq_fail_count
uint64_t event_enq_fail_count
Definition: rte_event_crypto_adapter.h:318
rte_event_crypto_adapter_stats::crypto_deq_count
uint64_t crypto_deq_count
Definition: rte_event_crypto_adapter.h:312
RTE_EVENT_CRYPTO_ADAPTER_OP_NEW
@ RTE_EVENT_CRYPTO_ADAPTER_OP_NEW
Definition: rte_event_crypto_adapter.h:182
rte_event_crypto_adapter_conf::event_port_id
uint8_t event_port_id
Definition: rte_event_crypto_adapter.h:255
rte_event_crypto_adapter_stats::event_deq_count
uint64_t event_deq_count
Definition: rte_event_crypto_adapter.h:306
rte_event_crypto_adapter_mode
rte_event_crypto_adapter_mode
Definition: rte_event_crypto_adapter.h:181
rte_event_crypto_request
Definition: rte_event_crypto_adapter.h:207
rte_event_crypto_adapter_free
int __rte_experimental rte_event_crypto_adapter_free(uint8_t id)
rte_event_crypto_adapter_create
int __rte_experimental 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)
rte_event_crypto_adapter_service_id_get
int __rte_experimental rte_event_crypto_adapter_service_id_get(uint8_t id, uint32_t *service_id)
rte_event_crypto_adapter_stats_get
int __rte_experimental rte_event_crypto_adapter_stats_get(uint8_t id, struct rte_event_crypto_adapter_stats *stats)
rte_event_crypto_adapter_stats_reset
int __rte_experimental rte_event_crypto_adapter_stats_reset(uint8_t id)
rte_event_crypto_metadata::response_info
struct rte_event response_info
Definition: rte_event_crypto_adapter.h:239
rte_event_crypto_adapter_create_ext
int __rte_experimental 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)
rte_event_crypto_adapter_stats::crypto_enq_fail
uint64_t crypto_enq_fail
Definition: rte_event_crypto_adapter.h:310
rte_event
Definition: rte_eventdev.h:1006
rte_event_crypto_request::queue_pair_id
uint16_t queue_pair_id
Definition: rte_event_crypto_adapter.h:215
RTE_EVENT_CRYPTO_ADAPTER_OP_FORWARD
@ RTE_EVENT_CRYPTO_ADAPTER_OP_FORWARD
Definition: rte_event_crypto_adapter.h:189
rte_event_crypto_adapter_stats::event_poll_count
uint64_t event_poll_count
Definition: rte_event_crypto_adapter.h:304
rte_event_crypto_adapter_event_port_get
int __rte_experimental rte_event_crypto_adapter_event_port_get(uint8_t id, uint8_t *event_port_id)
rte_event_crypto_adapter_stats::event_enq_count
uint64_t event_enq_count
Definition: rte_event_crypto_adapter.h:314
rte_event_crypto_metadata::request_info
struct rte_event_crypto_request request_info
Definition: rte_event_crypto_adapter.h:235
rte_event_crypto_request::cdev_id
uint16_t cdev_id
Definition: rte_event_crypto_adapter.h:213
rte_event_crypto_adapter_stats::event_enq_retry_count
uint64_t event_enq_retry_count
Definition: rte_event_crypto_adapter.h:316
rte_event_crypto_request::resv1
uint32_t resv1
Definition: rte_event_crypto_adapter.h:217
rte_event_crypto_adapter_stats::crypto_enq_count
uint64_t crypto_enq_count
Definition: rte_event_crypto_adapter.h:308
rte_event_crypto_adapter_stats
Definition: rte_event_crypto_adapter.h:303
rte_event_crypto_adapter_queue_pair_add
int __rte_experimental rte_event_crypto_adapter_queue_pair_add(uint8_t id, uint8_t cdev_id, int32_t queue_pair_id, const struct rte_event *event)
rte_event_crypto_adapter_stop
int __rte_experimental rte_event_crypto_adapter_stop(uint8_t id)
rte_event_crypto_metadata
Definition: rte_event_crypto_adapter.h:234
rte_event_crypto_adapter_conf
Definition: rte_event_crypto_adapter.h:254
rte_eventdev.h
rte_event_port_conf
Definition: rte_eventdev.h:673