FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | cryptodev_key_t |
struct | cryptodev_capability_t |
struct | cryptodev_inst_t |
struct | cryptodev_numa_data_t |
struct | cryptodev_op_t |
struct | cryptodev_engine_thread_t |
struct | cryptodev_main_t |
Macros | |
#define | CRYPTODEV_NB_CRYPTO_OPS 1024 |
#define | CRYPTODEV_CACHE_QUEUE_SIZE VNET_CRYPTO_FRAME_POOL_SIZE |
#define | CRYPTODEV_CACHE_QUEUE_MASK (VNET_CRYPTO_FRAME_POOL_SIZE - 1) |
#define | CRYPTODEV_MAX_INFLIGHT (CRYPTODEV_NB_CRYPTO_OPS - 1) |
#define | CRYPTODEV_AAD_MASK (CRYPTODEV_NB_CRYPTO_OPS - 1) |
#define | CRYPTODEV_DEQ_CACHE_SZ 32 |
#define | CRYPTODEV_NB_SESSION 10240 |
#define | CRYPTODEV_MAX_IV_SIZE 16 |
#define | CRYPTODEV_MAX_AAD_SIZE 16 |
#define | CRYPTODEV_MAX_N_SGL 8 |
maximum number of segments More... | |
#define | CRYPTODEV_IV_OFFSET (offsetof (cryptodev_op_t, iv)) |
#define | CRYPTODEV_AAD_OFFSET (offsetof (cryptodev_op_t, aad)) |
#define | foreach_vnet_aead_crypto_conversion |
#define | foreach_cryptodev_link_async_alg |
crypto (alg, cryptodev_alg, key_size), hash (alg, digest-size) More... | |
Enumerations | |
enum | cryptodev_op_type_t { CRYPTODEV_OP_TYPE_ENCRYPT = 0, CRYPTODEV_OP_TYPE_DECRYPT, CRYPTODEV_N_OP_TYPES } |
Functions | |
static_always_inline void | cryptodev_mark_frame_err_status (vnet_crypto_async_frame_t *f, vnet_crypto_op_status_t s) |
int | cryptodev_session_create (vlib_main_t *vm, vnet_crypto_key_index_t idx, u32 aad_len) |
void | cryptodev_sess_handler (vlib_main_t *vm, vnet_crypto_key_op_t kop, vnet_crypto_key_index_t idx, u32 aad_len) |
int | cryptodev_check_cap_support (struct rte_cryptodev_sym_capability_idx *idx, u32 key_size, u32 digest_size, u32 aad_size) |
clib_error_t * | cryptodev_register_cop_hdl (vlib_main_t *vm, u32 eidx) |
clib_error_t *__clib_weak | cryptodev_register_raw_hdl (vlib_main_t *vm, u32 eidx) |
clib_error_t *__clib_weak | dpdk_cryptodev_init (vlib_main_t *vm) |
Variables | |
cryptodev_main_t | cryptodev_main |
#define CRYPTODEV_AAD_MASK (CRYPTODEV_NB_CRYPTO_OPS - 1) |
Definition at line 28 of file cryptodev.h.
#define CRYPTODEV_AAD_OFFSET (offsetof (cryptodev_op_t, aad)) |
Definition at line 36 of file cryptodev.h.
#define CRYPTODEV_CACHE_QUEUE_MASK (VNET_CRYPTO_FRAME_POOL_SIZE - 1) |
Definition at line 26 of file cryptodev.h.
#define CRYPTODEV_CACHE_QUEUE_SIZE VNET_CRYPTO_FRAME_POOL_SIZE |
Definition at line 25 of file cryptodev.h.
#define CRYPTODEV_DEQ_CACHE_SZ 32 |
Definition at line 29 of file cryptodev.h.
#define CRYPTODEV_IV_OFFSET (offsetof (cryptodev_op_t, iv)) |
Definition at line 35 of file cryptodev.h.
#define CRYPTODEV_MAX_AAD_SIZE 16 |
Definition at line 32 of file cryptodev.h.
#define CRYPTODEV_MAX_INFLIGHT (CRYPTODEV_NB_CRYPTO_OPS - 1) |
Definition at line 27 of file cryptodev.h.
#define CRYPTODEV_MAX_IV_SIZE 16 |
Definition at line 31 of file cryptodev.h.
#define CRYPTODEV_MAX_N_SGL 8 |
maximum number of segments
Definition at line 33 of file cryptodev.h.
#define CRYPTODEV_NB_CRYPTO_OPS 1024 |
Definition at line 24 of file cryptodev.h.
#define CRYPTODEV_NB_SESSION 10240 |
Definition at line 30 of file cryptodev.h.
#define foreach_cryptodev_link_async_alg |
crypto (alg, cryptodev_alg, key_size), hash (alg, digest-size)
Definition at line 51 of file cryptodev.h.
#define foreach_vnet_aead_crypto_conversion |
Definition at line 40 of file cryptodev.h.
enum cryptodev_op_type_t |
Enumerator | |
---|---|
CRYPTODEV_OP_TYPE_ENCRYPT | |
CRYPTODEV_OP_TYPE_DECRYPT | |
CRYPTODEV_N_OP_TYPES |
Definition at line 71 of file cryptodev.h.
static_always_inline void cryptodev_mark_frame_err_status | ( | vnet_crypto_async_frame_t * | f, |
vnet_crypto_op_status_t | s | ||
) |
clib_error_t* cryptodev_register_cop_hdl | ( | vlib_main_t * | vm, |
u32 | eidx | ||
) |
INDENT-OFF
INDENT-ON
Definition at line 509 of file cryptodev_op_data_path.c.
clib_error_t* __clib_weak cryptodev_register_raw_hdl | ( | vlib_main_t * | vm, |
u32 | eidx | ||
) |
INDENT-OFF
Definition at line 631 of file cryptodev_raw_data_path.c.
void cryptodev_sess_handler | ( | vlib_main_t * | vm, |
vnet_crypto_key_op_t | kop, | ||
vnet_crypto_key_index_t | idx, | ||
u32 | aad_len | ||
) |
Definition at line 272 of file cryptodev.c.
int cryptodev_session_create | ( | vlib_main_t * | vm, |
vnet_crypto_key_index_t | idx, | ||
u32 | aad_len | ||
) |
Definition at line 326 of file cryptodev.c.
clib_error_t* __clib_weak dpdk_cryptodev_init | ( | vlib_main_t * | vm | ) |
Definition at line 1061 of file cryptodev.c.
cryptodev_main_t cryptodev_main |
Definition at line 43 of file cryptodev.c.