Go to the source code of this file.
|
static void | algos_init (u32 n_mains) |
|
static u8 | cipher_alg_index (const crypto_alg_t *alg) |
|
static u8 | auth_alg_index (const crypto_alg_t *alg) |
|
static crypto_alg_t * | cipher_cap_to_alg (const struct rte_cryptodev_capabilities *cap, u8 key_len) |
|
static crypto_alg_t * | auth_cap_to_alg (const struct rte_cryptodev_capabilities *cap, u8 trunc_size) |
|
static void | crypto_set_aead_xform (struct rte_crypto_sym_xform *xform, ipsec_sa_t *sa, u8 is_outbound) |
|
static void | crypto_set_cipher_xform (struct rte_crypto_sym_xform *xform, ipsec_sa_t *sa, u8 is_outbound) |
|
static void | crypto_set_auth_xform (struct rte_crypto_sym_xform *xform, ipsec_sa_t *sa, u8 is_outbound) |
|
clib_error_t * | create_sym_session (struct rte_cryptodev_sym_session **session, u32 sa_idx, crypto_resource_t *res, crypto_worker_main_t *cwm, u8 is_outbound) |
|
static void | clear_and_free_obj (void *obj) |
|
static void * | get_session_private_data (const struct rte_cryptodev_sym_session *sess, uint8_t driver_id) |
|
static void | set_session_private_data (struct rte_cryptodev_sym_session *sess, uint8_t driver_id, void *private_data) |
|
static clib_error_t * | dpdk_crypto_session_disposal (crypto_session_disposal_t *v, u64 ts) |
|
static clib_error_t * | add_del_sa_session (u32 sa_index, u8 is_add) |
|
static clib_error_t * | dpdk_ipsec_check_support (ipsec_sa_t *sa) |
|
static void | crypto_parse_capabilities (crypto_dev_t *dev, const struct rte_cryptodev_capabilities *cap, u32 n_mains) |
|
static clib_error_t * | crypto_dev_conf (u8 dev, u16 n_qp, u8 numa) |
|
static void | crypto_scan_devs (u32 n_mains) |
|
void | crypto_auto_placement (void) |
|
static void | crypto_op_init (struct rte_mempool *mempool, void *_arg, void *_obj, unsigned i) |
|
static clib_error_t * | crypto_create_crypto_op_pool (vlib_main_t *vm, u8 numa) |
|
static clib_error_t * | crypto_create_session_h_pool (vlib_main_t *vm, u8 numa) |
|
static clib_error_t * | crypto_create_session_drv_pool (vlib_main_t *vm, crypto_dev_t *dev) |
|
static clib_error_t * | crypto_create_pools (vlib_main_t *vm) |
|
static void | crypto_disable (void) |
|
static clib_error_t * | dpdk_ipsec_enable_disable (int is_enable) |
|
static clib_error_t * | dpdk_ipsec_main_init (vlib_main_t *vm) |
|
◆ AES_GCM_ALG
#define AES_GCM_ALG RTE_CRYPTO_AEAD_AES_GCM |
◆ AES_GCM_TYPE
#define AES_GCM_TYPE RTE_CRYPTO_SYM_XFORM_AEAD |
◆ EMPTY_STRUCT
◆ NUM_CRYPTO_MBUFS
#define NUM_CRYPTO_MBUFS 16384 |
◆ add_del_sa_session()
◆ algos_init()
static void algos_init |
( |
u32 |
n_mains | ) |
|
|
static |
◆ auth_alg_index()
◆ auth_cap_to_alg()
static crypto_alg_t* auth_cap_to_alg |
( |
const struct rte_cryptodev_capabilities * |
cap, |
|
|
u8 |
trunc_size |
|
) |
| |
|
static |
◆ cipher_alg_index()
◆ cipher_cap_to_alg()
static crypto_alg_t* cipher_cap_to_alg |
( |
const struct rte_cryptodev_capabilities * |
cap, |
|
|
u8 |
key_len |
|
) |
| |
|
static |
◆ clear_and_free_obj()
static void clear_and_free_obj |
( |
void * |
obj | ) |
|
|
static |
◆ create_sym_session()
◆ crypto_auto_placement()
void crypto_auto_placement |
( |
void |
| ) |
|
◆ crypto_create_crypto_op_pool()
◆ crypto_create_pools()
◆ crypto_create_session_drv_pool()
◆ crypto_create_session_h_pool()
◆ crypto_dev_conf()
◆ crypto_disable()
static void crypto_disable |
( |
void |
| ) |
|
|
static |
◆ crypto_op_init()
static void crypto_op_init |
( |
struct rte_mempool * |
mempool, |
|
|
void * |
_arg, |
|
|
void * |
_obj, |
|
|
unsigned |
i |
|
) |
| |
|
static |
◆ crypto_parse_capabilities()
static void crypto_parse_capabilities |
( |
crypto_dev_t * |
dev, |
|
|
const struct rte_cryptodev_capabilities * |
cap, |
|
|
u32 |
n_mains |
|
) |
| |
|
static |
◆ crypto_scan_devs()
static void crypto_scan_devs |
( |
u32 |
n_mains | ) |
|
|
static |
◆ crypto_set_aead_xform()
static void crypto_set_aead_xform |
( |
struct rte_crypto_sym_xform * |
xform, |
|
|
ipsec_sa_t * |
sa, |
|
|
u8 |
is_outbound |
|
) |
| |
|
static |
◆ crypto_set_auth_xform()
static void crypto_set_auth_xform |
( |
struct rte_crypto_sym_xform * |
xform, |
|
|
ipsec_sa_t * |
sa, |
|
|
u8 |
is_outbound |
|
) |
| |
|
static |
◆ crypto_set_cipher_xform()
static void crypto_set_cipher_xform |
( |
struct rte_crypto_sym_xform * |
xform, |
|
|
ipsec_sa_t * |
sa, |
|
|
u8 |
is_outbound |
|
) |
| |
|
static |
◆ dpdk_crypto_session_disposal()
◆ dpdk_ipsec_check_support()
◆ dpdk_ipsec_enable_disable()
static clib_error_t* dpdk_ipsec_enable_disable |
( |
int |
is_enable | ) |
|
|
static |
◆ dpdk_ipsec_main_init()
◆ get_session_private_data()
static void* get_session_private_data |
( |
const struct rte_cryptodev_sym_session * |
sess, |
|
|
uint8_t |
driver_id |
|
) |
| |
|
inlinestatic |
◆ set_session_private_data()
static void set_session_private_data |
( |
struct rte_cryptodev_sym_session * |
sess, |
|
|
uint8_t |
driver_id, |
|
|
void * |
private_data |
|
) |
| |
|
inlinestatic |
◆ dpdk_crypto_main