FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
enqueue.c File Reference
+ Include dependency graph for enqueue.c:

Go to the source code of this file.

Data Structures

struct  snort_enq_trace_t
 

Macros

#define foreach_snort_enq_error
 

Enumerations

enum  snort_enq_error_t { SNORT_ENQ_N_ERROR }
 

Functions

static u8format_snort_enq_trace (u8 *s, va_list *args)
 
static_always_inline uword snort_enq_node_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, int with_trace)
 
else return snort_enq_node_inline (vm, node, frame, 0)
 

Variables

static char * snort_enq_error_strings []
 
vlib_main_tvm
 
vlib_main_t vlib_node_runtime_tnode
 
vlib_main_t vlib_node_runtime_t vlib_frame_tframe
 
vlib_node_registration_t snort_enq_node
 (constructor) VLIB_REGISTER_NODE (snort_enq_node) More...
 

Macro Definition Documentation

◆ foreach_snort_enq_error

#define foreach_snort_enq_error
Value:
_ (SOCKET_ERROR, "write socket error") \
_ (NO_INSTANCE, "no snort instance") \
_ (NO_ENQ_SLOTS, "no enqueue slots (packet dropped)")

Definition at line 40 of file enqueue.c.

Enumeration Type Documentation

◆ snort_enq_error_t

Enumerator
SNORT_ENQ_N_ERROR 

Definition at line 45 of file enqueue.c.

Function Documentation

◆ format_snort_enq_trace()

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

Definition at line 21 of file enqueue.c.

+ Here is the call graph for this function:

◆ snort_enq_node_inline() [1/2]

static_always_inline uword snort_enq_node_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
int  with_trace 
)

Definition at line 60 of file enqueue.c.

+ Here is the call graph for this function:

◆ snort_enq_node_inline() [2/2]

else return snort_enq_node_inline ( vm  ,
node  ,
frame  ,
 
)

Variable Documentation

◆ frame

Initial value:

Definition at line 207 of file enqueue.c.

◆ node

Definition at line 206 of file enqueue.c.

◆ snort_enq_error_strings

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

Definition at line 53 of file enqueue.c.

◆ snort_enq_node

vlib_node_registration_t snort_enq_node
Initial value:
= {
.name = "snort-enq",
.vector_size = sizeof (u32),
.format_trace = format_snort_enq_trace,
.n_next_nodes = SNORT_ENQ_N_NEXT_NODES,
.next_nodes = SNORT_ENQ_NEXT_NODES,
.error_strings = snort_enq_error_strings,
}

(constructor) VLIB_REGISTER_NODE (snort_enq_node)

Definition at line 214 of file enqueue.c.

◆ vm

Definition at line 206 of file enqueue.c.

SNORT_ENQ_N_NEXT_NODES
@ SNORT_ENQ_N_NEXT_NODES
Definition: snort.h:90
frame
vlib_main_t vlib_node_runtime_t vlib_frame_t * frame
Definition: enqueue.c:207
format_snort_enq_trace
static u8 * format_snort_enq_trace(u8 *s, va_list *args)
Definition: enqueue.c:21
VLIB_NODE_TYPE_INTERNAL
@ VLIB_NODE_TYPE_INTERNAL
Definition: node.h:72
snort_enq_node_inline
static_always_inline uword snort_enq_node_inline(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, int with_trace)
Definition: enqueue.c:60
VLIB_NODE_FLAG_TRACE
#define VLIB_NODE_FLAG_TRACE
Definition: node.h:291
PREDICT_FALSE
#define PREDICT_FALSE(x)
Definition: clib.h:124
ARRAY_LEN
#define ARRAY_LEN(x)
Definition: clib.h:70
SNORT_ENQ_NEXT_NODES
#define SNORT_ENQ_NEXT_NODES
Definition: snort.h:93
node
vlib_main_t vlib_node_runtime_t * node
Definition: enqueue.c:206
foreach_snort_enq_error
#define foreach_snort_enq_error
Definition: enqueue.c:40
u32
unsigned int u32
Definition: types.h:88
vm
vlib_main_t * vm
Definition: enqueue.c:206
snort_enq_error_strings
static char * snort_enq_error_strings[]
Definition: enqueue.c:53
type
vl_api_fib_path_type_t type
Definition: fib_types.api:123