FD.io VPP  v18.10-34-gcce845e
Vector Packet Processing
l2_in_out_acl.c File Reference
+ Include dependency graph for l2_in_out_acl.c:

Go to the source code of this file.

Data Structures

struct  l2_in_out_acl_main_t
 
struct  l2_in_out_acl_trace_t
 

Macros

#define foreach_l2_inacl_error
 
#define foreach_l2_outacl_error
 

Enumerations

enum  l2_inacl_error_t { L2_INACL_N_ERROR }
 
enum  l2_outacl_error_t { L2_OUTACL_N_ERROR }
 

Functions

static u8format_l2_in_out_acl_trace (u8 *s, u32 is_output, va_list *args)
 
static u8format_l2_inacl_trace (u8 *s, va_list *args)
 
static u8format_l2_outacl_trace (u8 *s, va_list *args)
 
static uword l2_in_out_acl_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, int is_output)
 
static uword l2_inacl_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static uword l2_outacl_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
clib_error_tl2_in_out_acl_init (vlib_main_t *vm)
 

Variables

l2_in_out_acl_main_t l2_in_out_acl_main
 
static vlib_node_registration_t l2_inacl_node
 (constructor) VLIB_REGISTER_NODE (l2_inacl_node) More...
 
static vlib_node_registration_t l2_outacl_node
 (constructor) VLIB_REGISTER_NODE (l2_outacl_node) More...
 
static char * l2_inacl_error_strings []
 
static char * l2_outacl_error_strings []
 

Macro Definition Documentation

#define foreach_l2_inacl_error
Value:
_(NONE, "valid input ACL packets") \
_(MISS, "input ACL misses") \
_(HIT, "input ACL hits") \
_(CHAIN_HIT, "input ACL hits after chain walk") \
_(TABLE_MISS, "input ACL table-miss drops") \
_(SESSION_DENY, "input ACL session deny drops")

Definition at line 88 of file l2_in_out_acl.c.

#define foreach_l2_outacl_error
Value:
_(NONE, "valid output ACL packets") \
_(MISS, "output ACL misses") \
_(HIT, "output ACL hits") \
_(CHAIN_HIT, "output ACL hits after chain walk") \
_(TABLE_MISS, "output ACL table-miss drops") \
_(SESSION_DENY, "output ACL session deny drops")

Definition at line 96 of file l2_in_out_acl.c.

Enumeration Type Documentation

Enumerator
L2_INACL_N_ERROR 

Definition at line 105 of file l2_in_out_acl.c.

Enumerator
L2_OUTACL_N_ERROR 

Definition at line 119 of file l2_in_out_acl.c.

Function Documentation

static u8* format_l2_in_out_acl_trace ( u8 s,
u32  is_output,
va_list *  args 
)
static

Definition at line 59 of file l2_in_out_acl.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 72 of file l2_in_out_acl.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 78 of file l2_in_out_acl.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* l2_in_out_acl_init ( vlib_main_t vm)

Definition at line 507 of file l2_in_out_acl.c.

+ Here is the call graph for this function:

static uword l2_in_out_acl_node_fn ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
int  is_output 
)
inlinestatic

Definition at line 135 of file l2_in_out_acl.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 449 of file l2_in_out_acl.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 457 of file l2_in_out_acl.c.

+ Here is the call graph for this function:

Variable Documentation

l2_in_out_acl_main_t l2_in_out_acl_main

Definition at line 83 of file l2_in_out_acl.c.

char* l2_inacl_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_l2_inacl_error
Definition: l2_in_out_acl.c:88

Definition at line 113 of file l2_in_out_acl.c.

static vlib_node_registration_t l2_inacl_node
static
Initial value:
= {
.function = l2_inacl_node_fn,
.name = "l2-input-acl",
.vector_size = sizeof (u32),
.format_trace = format_l2_inacl_trace,
.error_strings = l2_inacl_error_strings,
.n_next_nodes = ACL_NEXT_INDEX_N_NEXT,
.next_nodes = {
[ACL_NEXT_INDEX_DENY] = "error-drop",
},
}
static u8 * format_l2_inacl_trace(u8 *s, va_list *args)
Definition: l2_in_out_acl.c:72
unsigned int u32
Definition: types.h:88
static uword l2_inacl_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
#define ARRAY_LEN(x)
Definition: clib.h:61
static char * l2_inacl_error_strings[]

(constructor) VLIB_REGISTER_NODE (l2_inacl_node)

Definition at line 85 of file l2_in_out_acl.c.

char* l2_outacl_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_l2_outacl_error
Definition: l2_in_out_acl.c:96

Definition at line 127 of file l2_in_out_acl.c.

static vlib_node_registration_t l2_outacl_node
static
Initial value:
= {
.function = l2_outacl_node_fn,
.name = "l2-output-acl",
.vector_size = sizeof (u32),
.format_trace = format_l2_outacl_trace,
.error_strings = l2_outacl_error_strings,
.n_next_nodes = ACL_NEXT_INDEX_N_NEXT,
.next_nodes = {
[ACL_NEXT_INDEX_DENY] = "error-drop",
},
}
static u8 * format_l2_outacl_trace(u8 *s, va_list *args)
Definition: l2_in_out_acl.c:78
unsigned int u32
Definition: types.h:88
#define ARRAY_LEN(x)
Definition: clib.h:61
static char * l2_outacl_error_strings[]
static uword l2_outacl_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)

(constructor) VLIB_REGISTER_NODE (l2_outacl_node)

Definition at line 86 of file l2_in_out_acl.c.