FD.io VPP  v16.09
Vector Packet Processing
node.c File Reference
+ Include dependency graph for node.c:

Go to the source code of this file.

Data Structures

struct  ssvm_eth_input_trace_t
 

Macros

#define foreach_ssvm_eth_input_error   _(NO_BUFFERS, "Rx packet drops (no buffers)")
 

Enumerations

enum  ssvm_eth_input_error_t { SSVM_ETH_INPUT_N_ERROR }
 
enum  ssvm_eth_input_next_t {
  SSVM_ETH_INPUT_NEXT_DROP, SSVM_ETH_INPUT_NEXT_ETHERNET_INPUT, SSVM_ETH_INPUT_NEXT_IP4_INPUT, SSVM_ETH_INPUT_NEXT_IP6_INPUT,
  SSVM_ETH_INPUT_NEXT_MPLS_INPUT, SSVM_ETH_INPUT_N_NEXT
}
 

Functions

static u8format_ssvm_eth_input_trace (u8 *s, va_list *args)
 
static uword ssvm_eth_device_input (ssvm_eth_main_t *em, ssvm_private_t *intfc, vlib_node_runtime_t *node)
 
static uword ssvm_eth_input_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 

Variables

vlib_node_registration_t ssvm_eth_input_node
 (constructor) VLIB_REGISTER_NODE (ssvm_eth_input_node) More...
 
static char * ssvm_eth_input_error_strings []
 

Macro Definition Documentation

#define foreach_ssvm_eth_input_error   _(NO_BUFFERS, "Rx packet drops (no buffers)")

Definition at line 40 of file node.c.

Enumeration Type Documentation

Enumerator
SSVM_ETH_INPUT_N_ERROR 

Definition at line 43 of file node.c.

Enumerator
SSVM_ETH_INPUT_NEXT_DROP 
SSVM_ETH_INPUT_NEXT_ETHERNET_INPUT 
SSVM_ETH_INPUT_NEXT_IP4_INPUT 
SSVM_ETH_INPUT_NEXT_IP6_INPUT 
SSVM_ETH_INPUT_NEXT_MPLS_INPUT 
SSVM_ETH_INPUT_N_NEXT 

Definition at line 57 of file node.c.

Function Documentation

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

Definition at line 27 of file node.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uword ssvm_eth_device_input ( ssvm_eth_main_t em,
ssvm_private_t intfc,
vlib_node_runtime_t node 
)
inlinestatic

Definition at line 68 of file node.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 298 of file node.c.

+ Here is the call graph for this function:

Variable Documentation

char* ssvm_eth_input_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_ssvm_eth_input_error
Definition: node.c:40

Definition at line 51 of file node.c.

vlib_node_registration_t ssvm_eth_input_node
Initial value:
= {
.name = "ssvm_eth_input",
.vector_size = sizeof (u32),
.format_trace = format_ssvm_eth_input_trace,
.state = VLIB_NODE_STATE_DISABLED,
.error_strings = ssvm_eth_input_error_strings,
.n_next_nodes = SSVM_ETH_INPUT_N_NEXT,
.next_nodes = {
[SSVM_ETH_INPUT_NEXT_DROP] = "error-drop",
[SSVM_ETH_INPUT_NEXT_ETHERNET_INPUT] = "ethernet-input",
[SSVM_ETH_INPUT_NEXT_MPLS_INPUT] = "mpls-gre-input",
},
}
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS
static u8 * format_ssvm_eth_input_trace(u8 *s, va_list *args)
Definition: node.c:27
static uword ssvm_eth_input_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: node.c:298
#define ARRAY_LEN(x)
Definition: clib.h:59
unsigned int u32
Definition: types.h:88
vhost_vring_state_t state
Definition: vhost-user.h:81
static char * ssvm_eth_input_error_strings[]
Definition: node.c:51

(constructor) VLIB_REGISTER_NODE (ssvm_eth_input_node)

Definition at line 17 of file node.c.