FD.io VPP  v20.05.1-6-gf53edbc3b
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 49 of file ct6_in2out.c.

Enumeration Type Documentation

◆ ct6_in2out_error_t

Enumerator
CT6_IN2OUT_N_ERROR 

Definition at line 54 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 70 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 78 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 139 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 339 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 34 of file ct6_in2out.c.

+ Here is the call graph for this function:

Variable Documentation

◆ ct6_in2out_error_strings

char* ct6_in2out_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_ct6_in2out_error
Definition: ct6_in2out.c:49

Definition at line 63 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,
}
static char * ct6_in2out_error_strings[]
Definition: ct6_in2out.c:63
unsigned int u32
Definition: types.h:88
vl_api_fib_path_type_t type
Definition: fib_types.api:123
#define ARRAY_LEN(x)
Definition: clib.h:66
static u8 * format_ct6_in2out_trace(u8 *s, va_list *args)
Definition: ct6_in2out.c:34
uword unformat_ethernet_header(unformat_input_t *input, va_list *args)
Definition: format.c:290

(constructor) VLIB_REGISTER_NODE (ct6_in2out_node)

Definition at line 45 of file ct6_in2out.c.