FD.io VPP  v20.09-64-g4f7b92f0a
Vector Packet Processing
node.c File Reference
+ Include dependency graph for node.c:

Go to the source code of this file.

Data Structures

struct  adl_input_trace_t
 

Macros

#define foreach_adl_input_error   _(PROCESSED, "Allow/Deny packets processed")
 
#define foreach_adl_stub   _(default-adl-allowlist, default_adl_allowlist)
 

Enumerations

enum  adl_input_error_t { ADL_INPUT_N_ERROR }
 

Functions

static u8format_adl_input_trace (u8 *s, va_list *args)
 
VLIB_NODE_FN() adl_input_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 

Variables

static char * adl_input_error_strings []
 
vlib_node_registration_t adl_input_node
 (constructor) VLIB_REGISTER_NODE (adl_input_node) More...
 
 foreach_adl_stub
 

Macro Definition Documentation

◆ foreach_adl_input_error

#define foreach_adl_input_error   _(PROCESSED, "Allow/Deny packets processed")

Definition at line 36 of file node.c.

◆ foreach_adl_stub

#define foreach_adl_stub   _(default-adl-allowlist, default_adl_allowlist)

Definition at line 283 of file node.c.

Enumeration Type Documentation

◆ adl_input_error_t

Enumerator
ADL_INPUT_N_ERROR 

Definition at line 39 of file node.c.

Function Documentation

◆ adl_input_node()

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

Definition at line 52 of file node.c.

+ Here is the call graph for this function:

◆ format_adl_input_trace()

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

Definition at line 25 of file node.c.

+ Here is the call graph for this function:

Variable Documentation

◆ adl_input_error_strings

char* adl_input_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_adl_input_error
Definition: node.c:36

Definition at line 46 of file node.c.

◆ adl_input_node

vlib_node_registration_t adl_input_node
Initial value:
= {
.name = "adl-input",
.vector_size = sizeof (u32),
.format_trace = format_adl_input_trace,
.unformat_buffer = unformat_ethernet_header,
.error_strings = adl_input_error_strings,
.n_next_nodes = ADL_RX_N_FEATURES,
.next_nodes = {
[IP4_RX_ADL_ALLOWLIST] = "ip4-adl-allowlist",
[IP6_RX_ADL_ALLOWLIST] = "ip6-adl-allowlist",
[DEFAULT_RX_ADL_ALLOWLIST] = "default-adl-allowlist",
[IP4_RX_ADL_INPUT] = "ip4-input",
[IP6_RX_ADL_INPUT] = "ip6-input",
[DEFAULT_RX_ADL_INPUT] = "ethernet-input",
[RX_ADL_DROP] = "error-drop",
},
}
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:67
static char * adl_input_error_strings[]
Definition: node.c:46
static u8 * format_adl_input_trace(u8 *s, va_list *args)
Definition: node.c:25
uword unformat_ethernet_header(unformat_input_t *input, va_list *args)
Definition: format.c:290

(constructor) VLIB_REGISTER_NODE (adl_input_node)

Definition at line 259 of file node.c.

◆ foreach_adl_stub

foreach_adl_stub

Definition at line 309 of file node.c.