FD.io VPP  v19.01.1-17-ge106252
Vector Packet Processing
nat44_handoff.c File Reference

NAT44 worker handoff. More...

+ Include dependency graph for nat44_handoff.c:

Go to the source code of this file.

Data Structures

struct  nat44_handoff_trace_t
 

Macros

#define foreach_nat44_handoff_error
 

Enumerations

enum  nat44_handoff_error_t { NAT44_HANDOFF_N_ERROR }
 

Functions

static u8format_nat44_handoff_trace (u8 *s, va_list *args)
 
static uword nat44_worker_handoff_fn_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, u8 is_output, u8 is_in2out)
 
static uword snat_in2out_worker_handoff_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VLIB_NODE_FUNCTION_MULTIARCH (snat_in2out_worker_handoff_node, snat_in2out_worker_handoff_fn)
 
static uword snat_in2out_output_worker_handoff_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VLIB_NODE_FUNCTION_MULTIARCH (snat_in2out_output_worker_handoff_node, snat_in2out_output_worker_handoff_fn)
 
static uword snat_out2in_worker_handoff_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VLIB_NODE_FUNCTION_MULTIARCH (snat_out2in_worker_handoff_node, snat_out2in_worker_handoff_fn)
 

Variables

static char * nat44_handoff_error_strings []
 
vlib_node_registration_t snat_in2out_worker_handoff_node
 (constructor) VLIB_REGISTER_NODE (snat_in2out_worker_handoff_node) More...
 
vlib_node_registration_t snat_in2out_output_worker_handoff_node
 (constructor) VLIB_REGISTER_NODE (snat_in2out_output_worker_handoff_node) More...
 
vlib_node_registration_t snat_out2in_worker_handoff_node
 (constructor) VLIB_REGISTER_NODE (snat_out2in_worker_handoff_node) More...
 

Detailed Description

NAT44 worker handoff.

Definition in file nat44_handoff.c.

Macro Definition Documentation

#define foreach_nat44_handoff_error
Value:
_(CONGESTION_DROP, "congestion drop") \
_(SAME_WORKER, "same worker") \
_(DO_HANDOFF, "do handoff")

Definition at line 33 of file nat44_handoff.c.

Enumeration Type Documentation

Enumerator
NAT44_HANDOFF_N_ERROR 

Definition at line 38 of file nat44_handoff.c.

Function Documentation

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

Definition at line 58 of file nat44_handoff.c.

+ Here is the call graph for this function:

static uword nat44_worker_handoff_fn_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
u8  is_output,
u8  is_in2out 
)
inlinestatic

Definition at line 74 of file nat44_handoff.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uword snat_in2out_output_worker_handoff_fn ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 183 of file nat44_handoff.c.

+ Here is the call graph for this function:

static uword snat_in2out_worker_handoff_fn ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 156 of file nat44_handoff.c.

+ Here is the call graph for this function:

static uword snat_out2in_worker_handoff_fn ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 210 of file nat44_handoff.c.

+ Here is the call graph for this function:

VLIB_NODE_FUNCTION_MULTIARCH ( snat_in2out_worker_handoff_node  ,
snat_in2out_worker_handoff_fn   
)
VLIB_NODE_FUNCTION_MULTIARCH ( snat_out2in_worker_handoff_node  ,
snat_out2in_worker_handoff_fn   
)

Variable Documentation

char* nat44_handoff_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_nat44_handoff_error
Definition: nat44_handoff.c:33

Definition at line 46 of file nat44_handoff.c.

vlib_node_registration_t snat_in2out_output_worker_handoff_node
Initial value:
= {
.name = "nat44-in2out-output-worker-handoff",
.vector_size = sizeof (u32),
.format_trace = format_nat44_handoff_trace,
.error_strings = nat44_handoff_error_strings,
.n_next_nodes = 1,
.next_nodes = {
[0] = "error-drop",
},
}
static char * nat44_handoff_error_strings[]
Definition: nat44_handoff.c:46
unsigned int u32
Definition: types.h:88
static uword snat_in2out_output_worker_handoff_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
#define ARRAY_LEN(x)
Definition: clib.h:62
static u8 * format_nat44_handoff_trace(u8 *s, va_list *args)
Definition: nat44_handoff.c:58

(constructor) VLIB_REGISTER_NODE (snat_in2out_output_worker_handoff_node)

Definition at line 54 of file nat44_handoff.c.

vlib_node_registration_t snat_in2out_worker_handoff_node
Initial value:
= {
.name = "nat44-in2out-worker-handoff",
.vector_size = sizeof (u32),
.format_trace = format_nat44_handoff_trace,
.error_strings = nat44_handoff_error_strings,
.n_next_nodes = 1,
.next_nodes = {
[0] = "error-drop",
},
}
static char * nat44_handoff_error_strings[]
Definition: nat44_handoff.c:46
static uword snat_in2out_worker_handoff_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
unsigned int u32
Definition: types.h:88
#define ARRAY_LEN(x)
Definition: clib.h:62
static u8 * format_nat44_handoff_trace(u8 *s, va_list *args)
Definition: nat44_handoff.c:58

(constructor) VLIB_REGISTER_NODE (snat_in2out_worker_handoff_node)

Definition at line 53 of file nat44_handoff.c.

vlib_node_registration_t snat_out2in_worker_handoff_node
Initial value:
= {
.name = "nat44-out2in-worker-handoff",
.vector_size = sizeof (u32),
.format_trace = format_nat44_handoff_trace,
.error_strings = nat44_handoff_error_strings,
.n_next_nodes = 1,
.next_nodes = {
[0] = "error-drop",
},
}
static char * nat44_handoff_error_strings[]
Definition: nat44_handoff.c:46
unsigned int u32
Definition: types.h:88
#define ARRAY_LEN(x)
Definition: clib.h:62
static uword snat_out2in_worker_handoff_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
static u8 * format_nat44_handoff_trace(u8 *s, va_list *args)
Definition: nat44_handoff.c:58

(constructor) VLIB_REGISTER_NODE (snat_out2in_worker_handoff_node)

Definition at line 55 of file nat44_handoff.c.