FD.io VPP  v17.04.2-2-ga8f93f8
Vector Packet Processing
ipsec.c File Reference
+ Include dependency graph for ipsec.c:

Go to the source code of this file.

Macros

#define DPDK_CRYPTO_NB_SESS_OBJS   20000
 
#define DPDK_CRYPTO_CACHE_SIZE   512
 
#define DPDK_CRYPTO_PRIV_SIZE   128
 
#define DPDK_CRYPTO_N_QUEUE_DESC   1024
 
#define DPDK_CRYPTO_NB_COPS   (1024 * 4)
 

Functions

static int add_del_sa_sess (u32 sa_index, u8 is_add)
 
static void update_qp_data (crypto_worker_main_t *cwm, u8 cdev_id, u16 qp_id, u8 is_outbound, u16 *idx)
 
static int add_mapping (crypto_worker_main_t *cwm, u8 cdev_id, u16 qp, u8 is_outbound, const struct rte_cryptodev_capabilities *cipher_cap, const struct rte_cryptodev_capabilities *auth_cap)
 
static int add_cdev_mapping (crypto_worker_main_t *cwm, struct rte_cryptodev_info *dev_info, u8 cdev_id, u16 qp, u8 is_outbound)
 
static int check_cryptodev_queues ()
 
static clib_error_tdpdk_ipsec_check_support (ipsec_sa_t *sa)
 
static uword dpdk_ipsec_process (vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)
 

Variables

static vlib_node_registration_t dpdk_ipsec_process_node
 (constructor) VLIB_REGISTER_NODE (dpdk_ipsec_process_node) More...
 

Macro Definition Documentation

#define DPDK_CRYPTO_CACHE_SIZE   512

Definition at line 26 of file ipsec.c.

#define DPDK_CRYPTO_N_QUEUE_DESC   1024

Definition at line 28 of file ipsec.c.

#define DPDK_CRYPTO_NB_COPS   (1024 * 4)

Definition at line 29 of file ipsec.c.

#define DPDK_CRYPTO_NB_SESS_OBJS   20000

Definition at line 25 of file ipsec.c.

#define DPDK_CRYPTO_PRIV_SIZE   128

Definition at line 27 of file ipsec.c.

Function Documentation

static int add_cdev_mapping ( crypto_worker_main_t cwm,
struct rte_cryptodev_info *  dev_info,
u8  cdev_id,
u16  qp,
u8  is_outbound 
)
static

Definition at line 141 of file ipsec.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int add_del_sa_sess ( u32  sa_index,
u8  is_add 
)
static

Definition at line 32 of file ipsec.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int add_mapping ( crypto_worker_main_t cwm,
u8  cdev_id,
u16  qp,
u8  is_outbound,
const struct rte_cryptodev_capabilities *  cipher_cap,
const struct rte_cryptodev_capabilities *  auth_cap 
)
static

Definition at line 110 of file ipsec.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int check_cryptodev_queues ( )
static

Definition at line 173 of file ipsec.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* dpdk_ipsec_check_support ( ipsec_sa_t sa)
static

Definition at line 202 of file ipsec.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uword dpdk_ipsec_process ( vlib_main_t vm,
vlib_node_runtime_t rt,
vlib_frame_t f 
)
static

Definition at line 224 of file ipsec.c.

+ Here is the call graph for this function:

static void update_qp_data ( crypto_worker_main_t cwm,
u8  cdev_id,
u16  qp_id,
u8  is_outbound,
u16 idx 
)
static

Definition at line 81 of file ipsec.c.

+ Here is the caller graph for this function:

Variable Documentation

vlib_node_registration_t dpdk_ipsec_process_node
static
Initial value:
= {
.function = dpdk_ipsec_process,
.name = "dpdk-ipsec-process",
.process_log2_n_stack_bytes = 17,
}
static uword dpdk_ipsec_process(vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)
Definition: ipsec.c:224

(constructor) VLIB_REGISTER_NODE (dpdk_ipsec_process_node)

Definition at line 412 of file ipsec.c.