FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
devices.h File Reference
+ Include dependency graph for devices.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  vnet_device_per_worker_data_t
 
struct  vnet_device_main_t
 

Macros

#define VNET_DEVICE_INPUT_NEXT_NODES
 

Enumerations

enum  vnet_device_input_next_t {
  VNET_DEVICE_INPUT_NEXT_IP4_NCS_INPUT, VNET_DEVICE_INPUT_NEXT_IP4_INPUT, VNET_DEVICE_INPUT_NEXT_IP6_INPUT, VNET_DEVICE_INPUT_NEXT_MPLS_INPUT,
  VNET_DEVICE_INPUT_NEXT_ETHERNET_INPUT, VNET_DEVICE_INPUT_NEXT_DROP, VNET_DEVICE_INPUT_NEXT_IP4_DROP, VNET_DEVICE_INPUT_NEXT_IP6_DROP,
  VNET_DEVICE_INPUT_NEXT_PUNT, VNET_DEVICE_INPUT_N_NEXT_NODES
}
 

Functions

static u64 vnet_get_aggregate_rx_packets (void)
 
static void vnet_device_increment_rx_packets (u32 thread_index, u64 count)
 

Variables

vnet_device_main_t vnet_device_main
 
vlib_node_registration_t device_input_node
 (constructor) VLIB_REGISTER_NODE (device_input_node) More...
 
const u32 device_input_next_node_advance []
 
const u32 device_input_next_node_flags []
 

Macro Definition Documentation

◆ VNET_DEVICE_INPUT_NEXT_NODES

#define VNET_DEVICE_INPUT_NEXT_NODES
Value:
{ \
[VNET_DEVICE_INPUT_NEXT_DROP] = "error-drop", \
[VNET_DEVICE_INPUT_NEXT_ETHERNET_INPUT] = "ethernet-input", \
[VNET_DEVICE_INPUT_NEXT_IP4_NCS_INPUT] = "ip4-input-no-checksum", \
[VNET_DEVICE_INPUT_NEXT_PUNT] = "punt-dispatch", \
}

Definition at line 39 of file devices.h.

Enumeration Type Documentation

◆ vnet_device_input_next_t

Enumerator
VNET_DEVICE_INPUT_NEXT_IP4_NCS_INPUT 
VNET_DEVICE_INPUT_NEXT_IP4_INPUT 
VNET_DEVICE_INPUT_NEXT_IP6_INPUT 
VNET_DEVICE_INPUT_NEXT_MPLS_INPUT 
VNET_DEVICE_INPUT_NEXT_ETHERNET_INPUT 
VNET_DEVICE_INPUT_NEXT_DROP 
VNET_DEVICE_INPUT_NEXT_IP4_DROP 
VNET_DEVICE_INPUT_NEXT_IP6_DROP 
VNET_DEVICE_INPUT_NEXT_PUNT 
VNET_DEVICE_INPUT_N_NEXT_NODES 

Definition at line 22 of file devices.h.

Function Documentation

◆ vnet_device_increment_rx_packets()

static void vnet_device_increment_rx_packets ( u32  thread_index,
u64  count 
)
inlinestatic

Definition at line 86 of file devices.h.

+ Here is the caller graph for this function:

◆ vnet_get_aggregate_rx_packets()

static u64 vnet_get_aggregate_rx_packets ( void  )
inlinestatic

Definition at line 74 of file devices.h.

+ Here is the caller graph for this function:

Variable Documentation

◆ device_input_next_node_advance

const u32 device_input_next_node_advance[]

Definition at line 47 of file devices.c.

◆ device_input_next_node_flags

const u32 device_input_next_node_flags[]

Definition at line 57 of file devices.c.

◆ device_input_node

vlib_node_registration_t device_input_node

(constructor) VLIB_REGISTER_NODE (device_input_node)

Definition at line 32 of file devices.c.

◆ vnet_device_main

vnet_device_main_t vnet_device_main

Definition at line 22 of file devices.c.

VNET_DEVICE_INPUT_NEXT_DROP
@ VNET_DEVICE_INPUT_NEXT_DROP
Definition: devices.h:29
VNET_DEVICE_INPUT_NEXT_ETHERNET_INPUT
@ VNET_DEVICE_INPUT_NEXT_ETHERNET_INPUT
Definition: devices.h:28
VNET_DEVICE_INPUT_NEXT_IP6_DROP
@ VNET_DEVICE_INPUT_NEXT_IP6_DROP
Definition: devices.h:33
VNET_DEVICE_INPUT_NEXT_IP4_DROP
@ VNET_DEVICE_INPUT_NEXT_IP4_DROP
Definition: devices.h:32
VNET_DEVICE_INPUT_NEXT_IP6_INPUT
@ VNET_DEVICE_INPUT_NEXT_IP6_INPUT
Definition: devices.h:26
VNET_DEVICE_INPUT_NEXT_IP4_INPUT
@ VNET_DEVICE_INPUT_NEXT_IP4_INPUT
Definition: devices.h:25
VNET_DEVICE_INPUT_NEXT_MPLS_INPUT
@ VNET_DEVICE_INPUT_NEXT_MPLS_INPUT
Definition: devices.h:27
VNET_DEVICE_INPUT_NEXT_PUNT
@ VNET_DEVICE_INPUT_NEXT_PUNT
Definition: devices.h:34
VNET_DEVICE_INPUT_NEXT_IP4_NCS_INPUT
@ VNET_DEVICE_INPUT_NEXT_IP4_NCS_INPUT
Definition: devices.h:24