FD.io VPP  v18.01-8-g0eacf49
Vector Packet Processing
ipsec.h File Reference
+ Include dependency graph for ipsec.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  dpdk_gcm_cnt_blk
 
struct  dpdk_op_priv_t
 
struct  crypto_worker_main_t
 
struct  crypto_alg_t
 
struct  crypto_dev_t
 
struct  crypto_drv_t
 
struct  crypto_resource_t
 
struct  crypto_session_disposal_t
 
struct  crypto_data_t
 
struct  dpdk_crypto_main_t
 
union  crypto_session_key_t
 

Macros

#define always_inline   static inline
 
#define foreach_dpdk_crypto_input_next
 
#define MAX_QP_PER_LCORE   16
 

Enumerations

enum  dpdk_crypto_input_next_t { DPDK_CRYPTO_INPUT_N_NEXT }
 

Functions

void crypto_auto_placement (void)
 
clib_error_tcreate_sym_session (struct rte_cryptodev_sym_session **session, u32 sa_idx, crypto_resource_t *res, crypto_worker_main_t *cwm, u8 is_outbound)
 
static_always_inline u32 crypto_op_len (void)
 
static_always_inline u32 crypto_op_get_priv_offset (void)
 
static_always_inline dpdk_op_priv_tcrypto_op_get_priv (struct rte_crypto_op *op)
 
static_always_inline clib_error_tcrypto_get_session (struct rte_cryptodev_sym_session **session, u32 sa_idx, crypto_resource_t *res, crypto_worker_main_t *cwm, u8 is_outbound)
 
static_always_inline u16 get_resource (crypto_worker_main_t *cwm, ipsec_sa_t *sa)
 
static_always_inline i32 crypto_alloc_ops (u8 numa, struct rte_crypto_op **ops, u32 n)
 
static_always_inline void crypto_free_ops (u8 numa, struct rte_crypto_op **ops, u32 n)
 
static_always_inline void crypto_enqueue_ops (vlib_main_t *vm, crypto_worker_main_t *cwm, u8 outbound, u32 node_index, u32 error, u8 numa)
 
static_always_inline void crypto_set_icb (dpdk_gcm_cnt_blk *icb, u32 salt, u32 seq, u32 seq_hi)
 
static_always_inline void crypto_op_setup (u8 is_aead, struct rte_mbuf *mb0, struct rte_crypto_op *op, void *session, u32 cipher_off, u32 cipher_len, u32 auth_off, u32 auth_len, u8 *aad, u8 *digest, u64 digest_paddr)
 

Variables

dpdk_crypto_main_t dpdk_crypto_main
 
static const u8 pad_data []
 

Macro Definition Documentation

#define always_inline   static inline

Definition at line 28 of file ipsec.h.

#define foreach_dpdk_crypto_input_next
Value:
_(DROP, "error-drop") \
_(IP4_LOOKUP, "ip4-lookup") \
_(IP6_LOOKUP, "ip6-lookup") \
_(INTERFACE_OUTPUT, "interface-output") \
_(DECRYPT_POST, "dpdk-esp-decrypt-post")
DROP
Definition: error.def:41

Definition at line 33 of file ipsec.h.

#define MAX_QP_PER_LCORE   16

Definition at line 48 of file ipsec.h.

Enumeration Type Documentation

Enumerator
DPDK_CRYPTO_INPUT_N_NEXT 

Definition at line 40 of file ipsec.h.

Function Documentation

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 
)

Definition at line 319 of file ipsec.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static_always_inline i32 crypto_alloc_ops ( u8  numa,
struct rte_crypto_op **  ops,
u32  n 
)

Definition at line 255 of file ipsec.h.

+ Here is the caller graph for this function:

void crypto_auto_placement ( void  )

Definition at line 726 of file ipsec.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static_always_inline void crypto_enqueue_ops ( vlib_main_t vm,
crypto_worker_main_t cwm,
u8  outbound,
u32  node_index,
u32  error,
u8  numa 
)

Definition at line 283 of file ipsec.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static_always_inline void crypto_free_ops ( u8  numa,
struct rte_crypto_op **  ops,
u32  n 
)

Definition at line 271 of file ipsec.h.

+ Here is the caller graph for this function:

static_always_inline clib_error_t* crypto_get_session ( struct rte_cryptodev_sym_session **  session,
u32  sa_idx,
crypto_resource_t res,
crypto_worker_main_t cwm,
u8  is_outbound 
)

Definition at line 205 of file ipsec.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static_always_inline dpdk_op_priv_t* crypto_op_get_priv ( struct rte_crypto_op *  op)

Definition at line 188 of file ipsec.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static_always_inline u32 crypto_op_get_priv_offset ( void  )

Definition at line 176 of file ipsec.h.

+ Here is the caller graph for this function:

static_always_inline u32 crypto_op_len ( void  )

Definition at line 166 of file ipsec.h.

+ Here is the caller graph for this function:

static_always_inline void crypto_op_setup ( u8  is_aead,
struct rte_mbuf *  mb0,
struct rte_crypto_op *  op,
void *  session,
u32  cipher_off,
u32  cipher_len,
u32  auth_off,
u32  auth_len,
u8 aad,
u8 digest,
u64  digest_paddr 
)

Definition at line 325 of file ipsec.h.

+ Here is the caller graph for this function:

static_always_inline void crypto_set_icb ( dpdk_gcm_cnt_blk icb,
u32  salt,
u32  seq,
u32  seq_hi 
)

Definition at line 317 of file ipsec.h.

+ Here is the caller graph for this function:

static_always_inline u16 get_resource ( crypto_worker_main_t cwm,
ipsec_sa_t sa 
)

Definition at line 230 of file ipsec.h.

+ Here is the caller graph for this function:

Variable Documentation

dpdk_crypto_main_t dpdk_crypto_main

Definition at line 24 of file ipsec.c.

const u8 pad_data[]
static
Initial value:
=
{ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 0 }

Definition at line 156 of file ipsec.h.