FD.io VPP  v18.01-8-g0eacf49
Vector Packet Processing
ssvm_eth.c File Reference
+ Include dependency graph for ssvm_eth.c:

Go to the source code of this file.

Macros

#define foreach_ssvm_eth_tx_func_error
 

Enumerations

enum  ssvm_eth_tx_func_error_t { SSVM_ETH_TX_N_ERROR }
 

Functions

static u32 ssvm_eth_flag_change (vnet_main_t *vnm, vnet_hw_interface_t *hi, u32 flags)
 
int ssvm_eth_create (ssvm_eth_main_t *em, u8 *name, int is_master)
 
static clib_error_tssvm_config (vlib_main_t *vm, unformat_input_t *input)
 
static clib_error_tssvm_eth_init (vlib_main_t *vm)
 
static u8format_ssvm_eth_device_name (u8 *s, va_list *args)
 
static u8format_ssvm_eth_device (u8 *s, va_list *args)
 
static u8format_ssvm_eth_tx_trace (u8 *s, va_list *args)
 
static uword ssvm_eth_interface_tx (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *f)
 
static void ssvm_eth_clear_hw_interface_counters (u32 instance)
 
static clib_error_tssvm_eth_interface_admin_up_down (vnet_main_t *vnm, u32 hw_if_index, u32 flags)
 
static clib_error_tssvm_eth_subif_add_del_function (vnet_main_t *vnm, u32 hw_if_index, struct vnet_sw_interface_t *st, int is_add)
 
static void ssvm_eth_set_interface_next_node (vnet_main_t *vnm, u32 hw_if_index, u32 node_index)
 
 VNET_DEVICE_CLASS (ssvm_eth_device_class)
 

Variables

ssvm_eth_main_t ssvm_eth_main
 
static char * ssvm_eth_tx_func_error_strings []
 

Macro Definition Documentation

#define foreach_ssvm_eth_tx_func_error
Value:
_(RING_FULL, "Tx packet drops (ring full)") \
_(NO_BUFFERS, "Tx packet drops (no buffers)") \
_(ADMIN_DOWN, "Tx packet drops (admin down)")

Definition at line 19 of file ssvm_eth.c.

Enumeration Type Documentation

Enumerator
SSVM_ETH_TX_N_ERROR 

Definition at line 24 of file ssvm_eth.c.

Function Documentation

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

Definition at line 227 of file ssvm_eth.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 218 of file ssvm_eth.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 234 of file ssvm_eth.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* ssvm_config ( vlib_main_t vm,
unformat_input_t input 
)
static

Definition at line 136 of file ssvm_eth.c.

+ Here is the call graph for this function:

static void ssvm_eth_clear_hw_interface_counters ( u32  instance)
static

Definition at line 402 of file ssvm_eth.c.

+ Here is the caller graph for this function:

int ssvm_eth_create ( ssvm_eth_main_t em,
u8 name,
int  is_master 
)

Definition at line 36 of file ssvm_eth.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u32 ssvm_eth_flag_change ( vnet_main_t vnm,
vnet_hw_interface_t hi,
u32  flags 
)
static

Definition at line 460 of file ssvm_eth.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* ssvm_eth_init ( vlib_main_t vm)
static

Definition at line 183 of file ssvm_eth.c.

+ Here is the call graph for this function:

static clib_error_t* ssvm_eth_interface_admin_up_down ( vnet_main_t vnm,
u32  hw_if_index,
u32  flags 
)
static

Definition at line 408 of file ssvm_eth.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uword ssvm_eth_interface_tx ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t f 
)
static

Definition at line 242 of file ssvm_eth.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void ssvm_eth_set_interface_next_node ( vnet_main_t vnm,
u32  hw_if_index,
u32  node_index 
)
static

Definition at line 441 of file ssvm_eth.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* ssvm_eth_subif_add_del_function ( vnet_main_t vnm,
u32  hw_if_index,
struct vnet_sw_interface_t st,
int  is_add 
)
static

Definition at line 428 of file ssvm_eth.c.

+ Here is the caller graph for this function:

VNET_DEVICE_CLASS ( ssvm_eth_device_class  )

+ Here is the caller graph for this function:

Variable Documentation

ssvm_eth_main_t ssvm_eth_main

Definition at line 17 of file ssvm_eth.c.

char* ssvm_eth_tx_func_error_strings[]
static
Initial value:
= {
#define _(n,s)
}
#define foreach_ssvm_eth_tx_func_error
Definition: ssvm_eth.c:19

Definition at line 211 of file ssvm_eth.c.