DPDK  24.11.0-rc3
rte_port_sym_crypto.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2018 Intel Corporation
3  */
4 
5 #ifndef __INCLUDE_RTE_PORT_SYM_CRYPTO_H__
6 #define __INCLUDE_RTE_PORT_SYM_CRYPTO_H__
7 
16 #include <stdint.h>
17 
18 #include <rte_cryptodev.h>
19 
20 #include "rte_port.h"
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
27 typedef void (*rte_port_sym_crypto_reader_callback_fn)(struct rte_mbuf **pkts,
28  uint16_t n_pkts, void *arg);
29 
33  uint8_t cryptodev_id;
34 
36  uint16_t queue_id;
37 
40 
42  void *arg_callback;
43 };
44 
47 
48 
52  uint8_t cryptodev_id;
53 
55  uint16_t queue_id;
56 
58  uint16_t crypto_op_offset;
59 
61  uint32_t tx_burst_sz;
62 };
63 
66 
70  uint8_t cryptodev_id;
71 
73  uint16_t queue_id;
74 
76  uint16_t crypto_op_offset;
77 
79  uint32_t tx_burst_sz;
80 
82  uint32_t n_retries;
83 };
84 
87 
88 #ifdef __cplusplus
89 }
90 #endif
91 
92 #endif
void(* rte_port_sym_crypto_reader_callback_fn)(struct rte_mbuf **pkts, uint16_t n_pkts, void *arg)
struct rte_port_out_ops rte_port_sym_crypto_writer_ops
rte_port_sym_crypto_reader_callback_fn f_callback
struct rte_port_in_ops rte_port_sym_crypto_reader_ops
struct rte_port_out_ops rte_port_sym_crypto_writer_nodrop_ops