FD.io VPP  v18.01.2-1-g9b554f3
Vector Packet Processing
dslite_in2out.c File Reference
+ Include dependency graph for dslite_in2out.c:

Go to the source code of this file.

Enumerations

enum  dslite_in2out_next_t {
  DSLITE_IN2OUT_NEXT_IP4_LOOKUP, DSLITE_IN2OUT_NEXT_IP6_ICMP, DSLITE_IN2OUT_NEXT_DROP, DSLITE_IN2OUT_NEXT_SLOWPATH,
  DSLITE_IN2OUT_N_NEXT
}
 

Functions

static u32 slow_path (dslite_main_t *dm, dslite_session_key_t *in2out_key, dslite_session_t **sp, u32 next, u8 *error, u32 thread_index)
 
static u32 dslite_icmp_in2out (dslite_main_t *dm, ip6_header_t *ip6, ip4_header_t *ip4, dslite_session_t **sp, u32 next, u8 *error, u32 thread_index)
 
static uword dslite_in2out_node_fn_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, u8 is_slow_path)
 
static uword dslite_in2out_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VLIB_NODE_FUNCTION_MULTIARCH (dslite_in2out_node, dslite_in2out_node_fn)
 
static uword dslite_in2out_slowpath_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VLIB_NODE_FUNCTION_MULTIARCH (dslite_in2out_slowpath_node, dslite_in2out_slowpath_node_fn)
 

Variables

vlib_node_registration_t dslite_in2out_node
 (constructor) VLIB_REGISTER_NODE (dslite_in2out_node) More...
 
vlib_node_registration_t dslite_in2out_slowpath_node
 (constructor) VLIB_REGISTER_NODE (dslite_in2out_slowpath_node) More...
 
static char * dslite_in2out_error_strings []
 

Enumeration Type Documentation

Enumerator
DSLITE_IN2OUT_NEXT_IP4_LOOKUP 
DSLITE_IN2OUT_NEXT_IP6_ICMP 
DSLITE_IN2OUT_NEXT_DROP 
DSLITE_IN2OUT_NEXT_SLOWPATH 
DSLITE_IN2OUT_N_NEXT 

Definition at line 20 of file dslite_in2out.c.

Function Documentation

static u32 dslite_icmp_in2out ( dslite_main_t dm,
ip6_header_t ip6,
ip4_header_t ip4,
dslite_session_t **  sp,
u32  next,
u8 error,
u32  thread_index 
)
inlinestatic

Definition at line 157 of file dslite_in2out.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 431 of file dslite_in2out.c.

+ Here is the call graph for this function:

static uword dslite_in2out_node_fn_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
u8  is_slow_path 
)
inlinestatic

Definition at line 223 of file dslite_in2out.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 460 of file dslite_in2out.c.

+ Here is the call graph for this function:

static u32 slow_path ( dslite_main_t dm,
dslite_session_key_t in2out_key,
dslite_session_t **  sp,
u32  next,
u8 error,
u32  thread_index 
)
static

Definition at line 36 of file dslite_in2out.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VLIB_NODE_FUNCTION_MULTIARCH ( dslite_in2out_node  ,
dslite_in2out_node_fn   
)
VLIB_NODE_FUNCTION_MULTIARCH ( dslite_in2out_slowpath_node  ,
dslite_in2out_slowpath_node_fn   
)

Variable Documentation

char* dslite_in2out_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_dslite_error
Definition: dslite.h:96

Definition at line 29 of file dslite_in2out.c.

vlib_node_registration_t dslite_in2out_node
Initial value:
= {
.function = dslite_in2out_node_fn,
.name = "dslite-in2out",
.vector_size = sizeof (u32),
.format_trace = format_dslite_trace,
.error_strings = dslite_in2out_error_strings,
.n_next_nodes = DSLITE_IN2OUT_N_NEXT,
.next_nodes = {
[DSLITE_IN2OUT_NEXT_DROP] = "error-drop",
[DSLITE_IN2OUT_NEXT_IP6_ICMP] = "ip6-icmp-input",
[DSLITE_IN2OUT_NEXT_SLOWPATH] = "dslite-in2out-slowpath",
},
}
u8 * format_dslite_trace(u8 *s, va_list *args)
Definition: dslite.c:146
static char * dslite_in2out_error_strings[]
Definition: dslite_in2out.c:29
#define ARRAY_LEN(x)
Definition: clib.h:59
unsigned int u32
Definition: types.h:88
static uword dslite_in2out_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)

(constructor) VLIB_REGISTER_NODE (dslite_in2out_node)

Definition at line 17 of file dslite_in2out.c.

vlib_node_registration_t dslite_in2out_slowpath_node
Initial value:
= {
.name = "dslite-in2out-slowpath",
.vector_size = sizeof (u32),
.format_trace = format_dslite_trace,
.error_strings = dslite_in2out_error_strings,
.n_next_nodes = DSLITE_IN2OUT_N_NEXT,
.next_nodes = {
[DSLITE_IN2OUT_NEXT_DROP] = "error-drop",
[DSLITE_IN2OUT_NEXT_IP6_ICMP] = "ip6-lookup",
[DSLITE_IN2OUT_NEXT_SLOWPATH] = "dslite-in2out-slowpath",
},
}
u8 * format_dslite_trace(u8 *s, va_list *args)
Definition: dslite.c:146
static char * dslite_in2out_error_strings[]
Definition: dslite_in2out.c:29
#define ARRAY_LEN(x)
Definition: clib.h:59
unsigned int u32
Definition: types.h:88
static uword dslite_in2out_slowpath_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)

(constructor) VLIB_REGISTER_NODE (dslite_in2out_slowpath_node)

Definition at line 18 of file dslite_in2out.c.