FD.io VPP  v20.09-64-g4f7b92f0a
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
 

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 }
 

Functions

static u8format_esp_encrypt_trace (u8 *s, va_list *args)
 
static uword dpdk_esp_encrypt_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame, int is_ip6, int is_tun)
 
VLIB_NODE_FN() dpdk_esp4_encrypt_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
VLIB_NODE_FN() dpdk_esp6_encrypt_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
VLIB_NODE_FN() dpdk_esp4_encrypt_tun_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
VLIB_NODE_FN() dpdk_esp6_encrypt_tun_node (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_esp4_encrypt_node
 (constructor) VLIB_REGISTER_NODE (dpdk_esp4_encrypt_node) More...
 
vlib_node_registration_t dpdk_esp6_encrypt_node
 (constructor) VLIB_REGISTER_NODE (dpdk_esp6_encrypt_node) More...
 
vlib_node_registration_t dpdk_esp4_encrypt_tun_node
 (constructor) VLIB_REGISTER_NODE (dpdk_esp4_encrypt_tun_node) More...
 
vlib_node_registration_t dpdk_esp6_encrypt_tun_node
 (constructor) VLIB_REGISTER_NODE (dpdk_esp6_encrypt_tun_node) More...
 

Macro Definition Documentation

◆ foreach_esp_encrypt_error

#define foreach_esp_encrypt_error
Value:
_(RX_PKTS, "ESP pkts received") \
_(SEQ_CYCLED, "Sequence number cycled") \
_(ENQ_FAIL, "Enqueue encrypt failed (queue full)") \
_(DISCARD, "Not enough crypto operations") \
_(SESSION, "Failed to get crypto session") \
_(NOSUP, "Cipher/Auth not supported")

Definition at line 45 of file esp_encrypt.c.

◆ foreach_esp_encrypt_next

#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 31 of file esp_encrypt.c.

Enumeration Type Documentation

◆ esp_encrypt_error_t

Enumerator
ESP_ENCRYPT_N_ERROR 
ESP_ENCRYPT_N_ERROR 

Definition at line 54 of file esp_encrypt.c.

◆ esp_encrypt_next_t

Enumerator
ESP_ENCRYPT_N_NEXT 
ESP_ENCRYPT_N_NEXT 

Definition at line 38 of file esp_encrypt.c.

Function Documentation

◆ dpdk_esp4_encrypt_node()

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

Definition at line 613 of file esp_encrypt.c.

+ Here is the call graph for this function:

◆ dpdk_esp4_encrypt_tun_node()

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

Definition at line 659 of file esp_encrypt.c.

+ Here is the call graph for this function:

◆ dpdk_esp6_encrypt_node()

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

Definition at line 636 of file esp_encrypt.c.

+ Here is the call graph for this function:

◆ dpdk_esp6_encrypt_tun_node()

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

Definition at line 682 of file esp_encrypt.c.

+ Here is the call graph for this function:

◆ dpdk_esp_encrypt_inline()

static uword dpdk_esp_encrypt_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame,
int  is_ip6,
int  is_tun 
)
inlinestatic

Definition at line 114 of file esp_encrypt.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ format_esp_encrypt_trace()

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

Definition at line 82 of file esp_encrypt.c.

+ Here is the call graph for this function:

Variable Documentation

◆ dpdk_esp4_encrypt_node

vlib_node_registration_t dpdk_esp4_encrypt_node
Initial value:
= {
.name = "dpdk-esp4-encrypt",
.vector_size = sizeof (u32),
.format_trace = format_esp_encrypt_trace,
.error_strings = 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:82
unsigned int u32
Definition: types.h:88
static char * esp_encrypt_error_strings[]
Definition: esp_encrypt.c:62
#define ARRAY_LEN(x)
Definition: clib.h:67
#define VLIB_NODE_FLAG_IS_OUTPUT
Definition: node.h:295

(constructor) VLIB_REGISTER_NODE (dpdk_esp4_encrypt_node)

Definition at line 621 of file esp_encrypt.c.

◆ dpdk_esp4_encrypt_tun_node

vlib_node_registration_t dpdk_esp4_encrypt_tun_node
Initial value:
= {
.name = "dpdk-esp4-encrypt-tun",
.vector_size = sizeof (u32),
.format_trace = format_esp_encrypt_trace,
.error_strings = 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:82
unsigned int u32
Definition: types.h:88
static char * esp_encrypt_error_strings[]
Definition: esp_encrypt.c:62
#define ARRAY_LEN(x)
Definition: clib.h:67
#define VLIB_NODE_FLAG_IS_OUTPUT
Definition: node.h:295

(constructor) VLIB_REGISTER_NODE (dpdk_esp4_encrypt_tun_node)

Definition at line 667 of file esp_encrypt.c.

◆ dpdk_esp6_encrypt_node

vlib_node_registration_t dpdk_esp6_encrypt_node
Initial value:
= {
.name = "dpdk-esp6-encrypt",
.vector_size = sizeof (u32),
.format_trace = format_esp_encrypt_trace,
.error_strings = 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:82
unsigned int u32
Definition: types.h:88
static char * esp_encrypt_error_strings[]
Definition: esp_encrypt.c:62
#define ARRAY_LEN(x)
Definition: clib.h:67
#define VLIB_NODE_FLAG_IS_OUTPUT
Definition: node.h:295

(constructor) VLIB_REGISTER_NODE (dpdk_esp6_encrypt_node)

Definition at line 644 of file esp_encrypt.c.

◆ dpdk_esp6_encrypt_tun_node

vlib_node_registration_t dpdk_esp6_encrypt_tun_node
Initial value:
= {
.name = "dpdk-esp6-encrypt-tun",
.vector_size = sizeof (u32),
.format_trace = format_esp_encrypt_trace,
.error_strings = 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:82
unsigned int u32
Definition: types.h:88
static char * esp_encrypt_error_strings[]
Definition: esp_encrypt.c:62
#define ARRAY_LEN(x)
Definition: clib.h:67
#define VLIB_NODE_FLAG_IS_OUTPUT
Definition: node.h:295

(constructor) VLIB_REGISTER_NODE (dpdk_esp6_encrypt_tun_node)

Definition at line 690 of file esp_encrypt.c.

◆ esp_encrypt_error_strings

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

Definition at line 62 of file esp_encrypt.c.