FD.io VPP  v19.01.1-17-ge106252
Vector Packet Processing
crypto_node.c File Reference
+ Include dependency graph for crypto_node.c:

Go to the source code of this file.

Data Structures

struct  dpdk_crypto_input_trace_t
 

Macros

#define foreach_dpdk_crypto_input_error
 
#define foreach_cryptodev_status
 

Enumerations

enum  dpdk_crypto_input_error_t { DPDK_CRYPTO_INPUT_N_ERROR }
 

Functions

static u8format_cryptodev_status (u8 *s, va_list *args)
 
static u8format_dpdk_crypto_input_trace (u8 *s, va_list *args)
 
static_always_inline void dpdk_crypto_input_check_op (vlib_main_t *vm, vlib_node_runtime_t *node, struct rte_crypto_op *op0, u16 *next)
 
static void dpdk_crypto_input_trace (vlib_main_t *vm, vlib_node_runtime_t *node, struct rte_crypto_op **ops, u32 n_deq)
 
static_always_inline u32 dpdk_crypto_dequeue (vlib_main_t *vm, vlib_node_runtime_t *node, crypto_resource_t *res, u8 outbound)
 
static_always_inline uword dpdk_crypto_input_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() dpdk_crypto_input_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 

Variables

static char * dpdk_crypto_input_error_strings []
 
vlib_node_registration_t dpdk_crypto_input_node
 (constructor) VLIB_REGISTER_NODE (dpdk_crypto_input_node) More...
 

Macro Definition Documentation

#define foreach_cryptodev_status
Value:
_(SUCCESS, "success") \
_(NOT_PROCESSED, "not processed") \
_(AUTH_FAILED, "auth failed") \
_(INVALID_SESSION, "invalid session") \
_(INVALID_ARGS, "invalid arguments") \
_(ERROR, "error")

Definition at line 55 of file crypto_node.c.

#define foreach_dpdk_crypto_input_error
Value:
_(DQ_COPS, "Crypto ops dequeued") \
_(AUTH_FAILED, "Crypto verification failed") \
_(STATUS, "Crypto operation failed")

Definition at line 29 of file crypto_node.c.

Enumeration Type Documentation

Enumerator
DPDK_CRYPTO_INPUT_N_ERROR 

Definition at line 34 of file crypto_node.c.

Function Documentation

static_always_inline u32 dpdk_crypto_dequeue ( vlib_main_t vm,
vlib_node_runtime_t node,
crypto_resource_t res,
u8  outbound 
)

Definition at line 146 of file crypto_node.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static_always_inline void dpdk_crypto_input_check_op ( vlib_main_t vm,
vlib_node_runtime_t node,
struct rte_crypto_op *  op0,
u16 next 
)

Definition at line 93 of file crypto_node.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static_always_inline uword dpdk_crypto_input_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 271 of file crypto_node.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VLIB_NODE_FN() dpdk_crypto_input_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)

Definition at line 324 of file crypto_node.c.

+ Here is the call graph for this function:

static void dpdk_crypto_input_trace ( vlib_main_t vm,
vlib_node_runtime_t node,
struct rte_crypto_op **  ops,
u32  n_deq 
)
inlinestatic

Definition at line 111 of file crypto_node.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u8* format_cryptodev_status ( u8 s,
va_list *  args 
)
static

Definition at line 64 of file crypto_node.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u8* format_dpdk_crypto_input_trace ( u8 s,
va_list *  args 
)
static

Definition at line 81 of file crypto_node.c.

+ Here is the call graph for this function:

Variable Documentation

char* dpdk_crypto_input_error_strings[]
static
Initial value:
= {
#define _(n, s)
}
#define foreach_dpdk_crypto_input_error
Definition: crypto_node.c:29

Definition at line 42 of file crypto_node.c.

vlib_node_registration_t dpdk_crypto_input_node
Initial value:
=
{
.name = "dpdk-crypto-input",
.state = VLIB_NODE_STATE_DISABLED,
.n_next_nodes = DPDK_CRYPTO_INPUT_N_NEXT,
.next_nodes =
{
#define _(s,n)
},
}
#define foreach_dpdk_crypto_input_next
Definition: ipsec.h:33
static char * dpdk_crypto_input_error_strings[]
Definition: crypto_node.c:42
static u8 * format_dpdk_crypto_input_trace(u8 *s, va_list *args)
Definition: crypto_node.c:81

(constructor) VLIB_REGISTER_NODE (dpdk_crypto_input_node)

Definition at line 332 of file crypto_node.c.