FD.io VPP  v19.04.4-rc0-5-ge88582fac
Vector Packet Processing
node.c File Reference
+ Include dependency graph for node.c:

Go to the source code of this file.

Data Structures

struct  af_packet_input_trace_t
 

Macros

#define foreach_af_packet_input_error   _(PARTIAL_PKT, "partial packet")
 

Enumerations

enum  af_packet_input_error_t { AF_PACKET_INPUT_N_ERROR }
 

Functions

static u8format_af_packet_input_trace (u8 *s, va_list *args)
 
static void buffer_add_to_chain (vlib_main_t *vm, u32 bi, u32 first_bi, u32 prev_bi)
 
static_always_inline void mark_tcp_udp_cksum_calc (vlib_buffer_t *b)
 
static uword af_packet_device_input_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, af_packet_if_t *apif)
 
VLIB_NODE_FN() af_packet_input_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 

Variables

static char * af_packet_input_error_strings []
 
vlib_node_registration_t af_packet_input_node
 (constructor) VLIB_REGISTER_NODE (af_packet_input_node) More...
 

Macro Definition Documentation

◆ foreach_af_packet_input_error

#define foreach_af_packet_input_error   _(PARTIAL_PKT, "partial packet")

Definition at line 32 of file node.c.

Enumeration Type Documentation

◆ af_packet_input_error_t

Enumerator
AF_PACKET_INPUT_N_ERROR 

Definition at line 35 of file node.c.

Function Documentation

◆ af_packet_device_input_fn()

static uword af_packet_device_input_fn ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
af_packet_if_t apif 
)
inlinestatic

Definition at line 177 of file node.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ af_packet_input_node()

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

Definition at line 348 of file node.c.

+ Here is the call graph for this function:

◆ buffer_add_to_chain()

static void buffer_add_to_chain ( vlib_main_t vm,
u32  bi,
u32  first_bi,
u32  prev_bi 
)
inlinestatic

Definition at line 94 of file node.c.

+ Here is the call graph for this function:

◆ format_af_packet_input_trace()

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

Definition at line 58 of file node.c.

+ Here is the call graph for this function:

◆ mark_tcp_udp_cksum_calc()

static_always_inline void mark_tcp_udp_cksum_calc ( vlib_buffer_t b)

Definition at line 112 of file node.c.

+ Here is the call graph for this function:

Variable Documentation

◆ af_packet_input_error_strings

char* af_packet_input_error_strings[]
static
Initial value:
= {
#define _(n,s)
}
#define foreach_af_packet_input_error
Definition: node.c:32

Definition at line 43 of file node.c.

◆ af_packet_input_node

vlib_node_registration_t af_packet_input_node
Initial value:
= {
.name = "af-packet-input",
.sibling_of = "device-input",
.state = VLIB_NODE_STATE_INTERRUPT,
}
static char * af_packet_input_error_strings[]
Definition: node.c:43
static u8 * format_af_packet_input_trace(u8 *s, va_list *args)
Definition: node.c:58

(constructor) VLIB_REGISTER_NODE (af_packet_input_node)

Definition at line 369 of file node.c.