FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
ct6_in2out.c File Reference
+ Include dependency graph for ct6_in2out.c:

Go to the source code of this file.

Data Structures

struct  ct6_in2out_trace_t
 

Macros

#define foreach_ct6_in2out_error
 

Enumerations

enum  ct6_in2out_error_t { CT6_IN2OUT_N_ERROR }
 
enum  ct6_next_t { CT6_IN2OUT_NEXT_DROP, CT6_IN2OUT_N_NEXT, CT6_OUT2IN_NEXT_DROP, CT6_OUT2IN_N_NEXT }
 

Functions

static u8format_ct6_in2out_trace (u8 *s, va_list *args)
 
ct6_session_tct6_create_or_recycle_session (ct6_main_t *cmp, clib_bihash_kv_48_8_t *kvpp, f64 now, u32 my_thread_index, u32 *recyclep, u32 *createp)
 
static uword ct6_in2out_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, int is_trace)
 
VLIB_NODE_FN() ct6_in2out_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 

Variables

vlib_node_registration_t ct6_in2out_node
 (constructor) VLIB_REGISTER_NODE (ct6_in2out_node) More...
 
static char * ct6_in2out_error_strings []
 

Macro Definition Documentation

◆ foreach_ct6_in2out_error

#define foreach_ct6_in2out_error
Value:
_(PROCESSED, "ct6 packets processed") \
_(CREATED, "ct6 sessions created") \
_(RECYCLED, "ct6 sessions recycled")

Definition at line 48 of file ct6_in2out.c.

Enumeration Type Documentation

◆ ct6_in2out_error_t

Enumerator
CT6_IN2OUT_N_ERROR 

Definition at line 53 of file ct6_in2out.c.

◆ ct6_next_t

enum ct6_next_t
Enumerator
CT6_IN2OUT_NEXT_DROP 
CT6_IN2OUT_N_NEXT 
CT6_OUT2IN_NEXT_DROP 
CT6_OUT2IN_N_NEXT 

Definition at line 69 of file ct6_in2out.c.

Function Documentation

◆ ct6_create_or_recycle_session()

ct6_session_t* ct6_create_or_recycle_session ( ct6_main_t cmp,
clib_bihash_kv_48_8_t kvpp,
f64  now,
u32  my_thread_index,
u32 recyclep,
u32 createp 
)

Definition at line 77 of file ct6_in2out.c.

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

◆ ct6_in2out_inline()

static uword ct6_in2out_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
int  is_trace 
)
inlinestatic

Definition at line 138 of file ct6_in2out.c.

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

◆ ct6_in2out_node()

VLIB_NODE_FN() ct6_in2out_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 338 of file ct6_in2out.c.

+ Here is the call graph for this function:

◆ format_ct6_in2out_trace()

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

Definition at line 33 of file ct6_in2out.c.

Variable Documentation

◆ ct6_in2out_error_strings

char* ct6_in2out_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}

Definition at line 62 of file ct6_in2out.c.

◆ ct6_in2out_node

vlib_node_registration_t ct6_in2out_node
Initial value:
=
{
.name = "ct6-in2out",
.vector_size = sizeof (u32),
.format_trace = format_ct6_in2out_trace,
.error_strings = ct6_in2out_error_strings,
.n_next_nodes = CT6_IN2OUT_N_NEXT,
.next_nodes = {
[CT6_IN2OUT_NEXT_DROP] = "error-drop",
},
.unformat_buffer = unformat_ethernet_header,
}

(constructor) VLIB_REGISTER_NODE (ct6_in2out_node)

Definition at line 44 of file ct6_in2out.c.

CT6_IN2OUT_NEXT_DROP
@ CT6_IN2OUT_NEXT_DROP
Definition: ct6_in2out.c:71
VLIB_NODE_TYPE_INTERNAL
@ VLIB_NODE_TYPE_INTERNAL
Definition: node.h:72
CT6_IN2OUT_N_NEXT
@ CT6_IN2OUT_N_NEXT
Definition: ct6_in2out.c:72
ARRAY_LEN
#define ARRAY_LEN(x)
Definition: clib.h:70
format_ct6_in2out_trace
static u8 * format_ct6_in2out_trace(u8 *s, va_list *args)
Definition: ct6_in2out.c:33
unformat_ethernet_header
uword unformat_ethernet_header(unformat_input_t *input, va_list *args)
Definition: format.c:290
foreach_ct6_in2out_error
#define foreach_ct6_in2out_error
Definition: ct6_in2out.c:48
u32
unsigned int u32
Definition: types.h:88
ct6_in2out_error_strings
static char * ct6_in2out_error_strings[]
Definition: ct6_in2out.c:62
type
vl_api_fib_path_type_t type
Definition: fib_types.api:123