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

Go to the source code of this file.

Data Structures

struct  esp_encrypt_trace_t
 

Macros

#define foreach_esp_encrypt_next
 
#define foreach_esp_encrypt_error
 
#define foreach_esp_encrypt_post_error   _(PKTS, "ESP post pkts")
 

Enumerations

enum  esp_encrypt_next_t { ESP_ENCRYPT_N_NEXT, ESP_ENCRYPT_N_NEXT }
 
enum  esp_encrypt_error_t { ESP_ENCRYPT_N_ERROR, ESP_ENCRYPT_N_ERROR }
 
enum  esp_encrypt_post_error_t { ESP_ENCRYPT_POST_N_ERROR }
 

Functions

static u8format_esp_encrypt_trace (u8 *s, va_list *args)
 
static uword dpdk_esp_encrypt_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
static u8format_esp_encrypt_post_trace (u8 *s, va_list *args)
 
static uword dpdk_esp_encrypt_post_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 

Variables

static char * esp_encrypt_error_strings []
 
vlib_node_registration_t dpdk_esp_encrypt_node
 (constructor) VLIB_REGISTER_NODE (dpdk_esp_encrypt_node) More...
 
static char * esp_encrypt_post_error_strings []
 
vlib_node_registration_t dpdk_esp_encrypt_post_node
 (constructor) VLIB_REGISTER_NODE (dpdk_esp_encrypt_post_node) More...
 

Macro Definition Documentation

#define foreach_esp_encrypt_error
Value:
_(RX_PKTS, "ESP pkts received") \
_(SEQ_CYCLED, "sequence number cycled") \
_(ENQ_FAIL, "Enqueue failed (buffer full)") \
_(NO_CRYPTODEV, "Cryptodev not configured") \
_(UNSUPPORTED, "Cipher/Auth not supported")

Definition at line 42 of file esp_encrypt.c.

#define foreach_esp_encrypt_next
Value:
_(DROP, "error-drop") \
_(IP4_LOOKUP, "ip4-lookup") \
_(IP6_LOOKUP, "ip6-lookup") \
_(INTERFACE_OUTPUT, "interface-output")
DROP
Definition: error.def:41

Definition at line 28 of file esp_encrypt.c.

#define foreach_esp_encrypt_post_error   _(PKTS, "ESP post pkts")

Definition at line 513 of file esp_encrypt.c.

Enumeration Type Documentation

Enumerator
ESP_ENCRYPT_N_ERROR 
ESP_ENCRYPT_N_ERROR 

Definition at line 50 of file esp_encrypt.c.

Enumerator
ESP_ENCRYPT_N_NEXT 
ESP_ENCRYPT_N_NEXT 

Definition at line 35 of file esp_encrypt.c.

Enumerator
ESP_ENCRYPT_POST_N_ERROR 

Definition at line 515 of file esp_encrypt.c.

Function Documentation

static uword dpdk_esp_encrypt_node_fn ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)
static

Definition at line 90 of file esp_encrypt.c.

+ Here is the call graph for this function:

static uword dpdk_esp_encrypt_post_node_fn ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)
static

Definition at line 538 of file esp_encrypt.c.

+ Here is the call graph for this function:

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

Definition at line 532 of file esp_encrypt.c.

+ Here is the caller graph for this function:

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

Definition at line 76 of file esp_encrypt.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

vlib_node_registration_t dpdk_esp_encrypt_node
Initial value:
=
{
.function = dpdk_esp_encrypt_node_fn,.name = "dpdk-esp-encrypt",.flags =
VLIB_NODE_FLAG_IS_OUTPUT,.vector_size = sizeof (u32),.format_trace =
esp_encrypt_error_strings,.n_next_nodes = 1,.next_nodes =
{
[ESP_ENCRYPT_NEXT_DROP] = "error-drop",}
}
static u8 * format_esp_encrypt_trace(u8 *s, va_list *args)
Definition: esp_encrypt.c:76
static char * esp_encrypt_error_strings[]
Definition: esp_encrypt.c:58
#define ARRAY_LEN(x)
Definition: clib.h:59
unsigned int u32
Definition: types.h:88
#define VLIB_NODE_FLAG_IS_OUTPUT
Definition: node.h:253
static uword dpdk_esp_encrypt_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
Definition: esp_encrypt.c:90

(constructor) VLIB_REGISTER_NODE (dpdk_esp_encrypt_node)

Definition at line 64 of file esp_encrypt.c.

vlib_node_registration_t dpdk_esp_encrypt_post_node
Initial value:
=
{
.function = dpdk_esp_encrypt_post_node_fn,.name =
"dpdk-esp-encrypt-post",.vector_size = sizeof (u32),.format_trace =
ESP_ENCRYPT_N_NEXT,.next_nodes =
{
#define _(s,n)
}
}
#define ARRAY_LEN(x)
Definition: clib.h:59
unsigned int u32
Definition: types.h:88
static char * esp_encrypt_post_error_strings[]
Definition: esp_encrypt.c:523
static uword dpdk_esp_encrypt_post_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
Definition: esp_encrypt.c:538
#define foreach_esp_encrypt_next
Definition: esp_encrypt.c:28
static u8 * format_esp_encrypt_post_trace(u8 *s, va_list *args)
Definition: esp_encrypt.c:532

(constructor) VLIB_REGISTER_NODE (dpdk_esp_encrypt_post_node)

Definition at line 529 of file esp_encrypt.c.

char* esp_encrypt_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_esp_encrypt_error
Definition: esp_encrypt.c:42

Definition at line 58 of file esp_encrypt.c.

char* esp_encrypt_post_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_esp_encrypt_post_error
Definition: esp_encrypt.c:513

Definition at line 523 of file esp_encrypt.c.