FD.io VPP  v21.10.1-2-g0a485f517
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 35 of file node.c.

◆ foreach_adl_stub

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

Definition at line 282 of file node.c.

Enumeration Type Documentation

◆ adl_input_error_t

Enumerator
ADL_INPUT_N_ERROR 

Definition at line 38 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 51 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 24 of file node.c.

Variable Documentation

◆ adl_input_error_strings

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

Definition at line 45 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",
},
}

(constructor) VLIB_REGISTER_NODE (adl_input_node)

Definition at line 258 of file node.c.

◆ foreach_adl_stub

foreach_adl_stub

Definition at line 308 of file node.c.

DEFAULT_RX_ADL_ALLOWLIST
@ DEFAULT_RX_ADL_ALLOWLIST
Definition: adl.h:42
ADL_RX_N_FEATURES
@ ADL_RX_N_FEATURES
Definition: adl.h:52
VLIB_NODE_TYPE_INTERNAL
@ VLIB_NODE_TYPE_INTERNAL
Definition: node.h:72
RX_ADL_DROP
@ RX_ADL_DROP
Definition: adl.h:50
DEFAULT_RX_ADL_INPUT
@ DEFAULT_RX_ADL_INPUT
Definition: adl.h:47
adl_input_error_strings
static char * adl_input_error_strings[]
Definition: node.c:45
IP4_RX_ADL_ALLOWLIST
@ IP4_RX_ADL_ALLOWLIST
Definition: adl.h:40
foreach_adl_input_error
#define foreach_adl_input_error
Definition: node.c:35
ARRAY_LEN
#define ARRAY_LEN(x)
Definition: clib.h:70
format_adl_input_trace
static u8 * format_adl_input_trace(u8 *s, va_list *args)
Definition: node.c:24
unformat_ethernet_header
uword unformat_ethernet_header(unformat_input_t *input, va_list *args)
Definition: format.c:290
u32
unsigned int u32
Definition: types.h:88
IP6_RX_ADL_ALLOWLIST
@ IP6_RX_ADL_ALLOWLIST
Definition: adl.h:41
IP4_RX_ADL_INPUT
@ IP4_RX_ADL_INPUT
Definition: adl.h:45
type
vl_api_fib_path_type_t type
Definition: fib_types.api:123
IP6_RX_ADL_INPUT
@ IP6_RX_ADL_INPUT
Definition: adl.h:46