FD.io VPP  v17.04-9-g99c0734
Vector Packet Processing
device.c File Reference
+ Include dependency graph for device.c:

Go to the source code of this file.

Macros

#define foreach_memif_tx_func_error
 

Enumerations

enum  memif_tx_func_error_t { MEMIF_TX_N_ERROR }
 

Functions

static u8format_memif_device_name (u8 *s, va_list *args)
 
static u8format_memif_device (u8 *s, va_list *args)
 
static u8format_memif_tx_trace (u8 *s, va_list *args)
 
static_always_inline void memif_interface_lock (memif_if_t *mif)
 
static_always_inline void memif_interface_unlock (memif_if_t *mif)
 
static_always_inline void memif_prefetch_buffer_and_data (vlib_main_t *vm, u32 bi)
 
static_always_inline uword memif_interface_tx_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, memif_if_t *mif, memif_ring_type_t type)
 
static uword memif_interface_tx (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static void memif_set_interface_next_node (vnet_main_t *vnm, u32 hw_if_index, u32 node_index)
 
static void memif_clear_hw_interface_counters (u32 instance)
 
static clib_error_tmemif_interface_admin_up_down (vnet_main_t *vnm, u32 hw_if_index, u32 flags)
 
static clib_error_tmemif_subif_add_del_function (vnet_main_t *vnm, u32 hw_if_index, struct vnet_sw_interface_t *st, int is_add)
 
 VNET_DEVICE_CLASS (memif_device_class)
 

Variables

static char * memif_tx_func_error_strings []
 

Macro Definition Documentation

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

Definition at line 30 of file device.c.

Enumeration Type Documentation

Enumerator
MEMIF_TX_N_ERROR 

Definition at line 34 of file device.c.

Function Documentation

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

Definition at line 59 of file device.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 50 of file device.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 75 of file device.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void memif_clear_hw_interface_counters ( u32  instance)
static

Definition at line 266 of file device.c.

+ Here is the caller graph for this function:

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

Definition at line 272 of file device.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static_always_inline void memif_interface_lock ( memif_if_t mif)

Definition at line 82 of file device.c.

+ Here is the caller graph for this function:

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

Definition at line 233 of file device.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static_always_inline uword memif_interface_tx_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
memif_if_t mif,
memif_ring_type_t  type 
)

Definition at line 107 of file device.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static_always_inline void memif_interface_unlock ( memif_if_t mif)

Definition at line 92 of file device.c.

+ Here is the caller graph for this function:

static_always_inline void memif_prefetch_buffer_and_data ( vlib_main_t vm,
u32  bi 
)

Definition at line 99 of file device.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 247 of file device.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

+ Here is the call graph for this function:

VNET_DEVICE_CLASS ( memif_device_class  )

Variable Documentation

char* memif_tx_func_error_strings[]
static
Initial value:
= {
#define _(n,s)
}
#define foreach_memif_tx_func_error
Definition: device.c:30

Definition at line 42 of file device.c.