FD.io VPP  v19.01.3-6-g70449b9b9
Vector Packet Processing
device.c File Reference
+ Include dependency graph for device.c:

Go to the source code of this file.

Macros

#define foreach_netmap_tx_func_error
 

Enumerations

enum  netmap_tx_func_error_t { NETMAP_TX_N_ERROR }
 

Functions

static u8format_netmap_device_name (u8 *s, va_list *args)
 
static u8format_netmap_device (u8 *s, va_list *args)
 
static u8format_netmap_tx_trace (u8 *s, va_list *args)
 
static uword netmap_interface_tx (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static void netmap_set_interface_next_node (vnet_main_t *vnm, u32 hw_if_index, u32 node_index)
 
static void netmap_clear_hw_interface_counters (u32 instance)
 
static clib_error_tnetmap_interface_admin_up_down (vnet_main_t *vnm, u32 hw_if_index, u32 flags)
 
static clib_error_tnetmap_subif_add_del_function (vnet_main_t *vnm, u32 hw_if_index, struct vnet_sw_interface_t *st, int is_add)
 
 VNET_DEVICE_CLASS (netmap_device_class)
 

Variables

static char * netmap_tx_func_error_strings []
 

Macro Definition Documentation

◆ foreach_netmap_tx_func_error

#define foreach_netmap_tx_func_error
Value:
_(NO_FREE_SLOTS, "no free tx slots") \
_(PENDING_MSGS, "pending msgs in tx ring")

Definition at line 29 of file device.c.

Enumeration Type Documentation

◆ netmap_tx_func_error_t

Enumerator
NETMAP_TX_N_ERROR 

Definition at line 33 of file device.c.

Function Documentation

◆ format_netmap_device()

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

Definition at line 60 of file device.c.

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

◆ format_netmap_device_name()

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

Definition at line 49 of file device.c.

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

◆ format_netmap_tx_trace()

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

Definition at line 90 of file device.c.

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

◆ netmap_clear_hw_interface_counters()

static void netmap_clear_hw_interface_counters ( u32  instance)
static

Definition at line 197 of file device.c.

+ Here is the caller graph for this function:

◆ netmap_interface_admin_up_down()

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

Definition at line 203 of file device.c.

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

◆ netmap_interface_tx()

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

Definition at line 97 of file device.c.

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

◆ netmap_set_interface_next_node()

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

Definition at line 177 of file device.c.

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

◆ netmap_subif_add_del_function()

static clib_error_t* netmap_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 223 of file device.c.

+ Here is the call graph for this function:

◆ VNET_DEVICE_CLASS()

VNET_DEVICE_CLASS ( netmap_device_class  )

Variable Documentation

◆ netmap_tx_func_error_strings

char* netmap_tx_func_error_strings[]
static
Initial value:
= {
#define _(n,s)
}
#define foreach_netmap_tx_func_error
Definition: device.c:29

Definition at line 41 of file device.c.