FD.io VPP  v19.08.3-2-gbabecb413
Vector Packet Processing
device.c File Reference
+ Include dependency graph for device.c:

Go to the source code of this file.

Macros

#define foreach_af_packet_tx_func_error
 

Enumerations

enum  af_packet_tx_func_error_t { AF_PACKET_TX_N_ERROR }
 

Functions

u8format_af_packet_device_name (u8 *s, va_list *args)
 
static u8format_af_packet_device (u8 *s, va_list *args)
 
static u8format_af_packet_tx_trace (u8 *s, va_list *args)
 
VNET_DEVICE_CLASS_TX_FN() af_packet_device_class (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static void af_packet_set_interface_next_node (vnet_main_t *vnm, u32 hw_if_index, u32 node_index)
 
static void af_packet_clear_hw_interface_counters (u32 instance)
 
static clib_error_taf_packet_interface_admin_up_down (vnet_main_t *vnm, u32 hw_if_index, u32 flags)
 
static clib_error_taf_packet_subif_add_del_function (vnet_main_t *vnm, u32 hw_if_index, struct vnet_sw_interface_t *st, int is_add)
 
static clib_error_taf_packet_set_mac_address_function (struct vnet_hw_interface_t *hi, const u8 *old_address, const u8 *address)
 
 VNET_DEVICE_CLASS (af_packet_device_class)
 

Variables

static char * af_packet_tx_func_error_strings []
 

Macro Definition Documentation

◆ foreach_af_packet_tx_func_error

#define foreach_af_packet_tx_func_error
Value:
_(FRAME_NOT_READY, "tx frame not ready") \
_(TXRING_EAGAIN, "tx sendto temporary failure") \
_(TXRING_FATAL, "tx sendto fatal failure") \
_(TXRING_OVERRUN, "tx ring overrun")

Definition at line 33 of file device.c.

Enumeration Type Documentation

◆ af_packet_tx_func_error_t

Enumerator
AF_PACKET_TX_N_ERROR 

Definition at line 39 of file device.c.

Function Documentation

◆ af_packet_clear_hw_interface_counters()

static void af_packet_clear_hw_interface_counters ( u32  instance)
static

Definition at line 199 of file device.c.

+ Here is the caller graph for this function:

◆ af_packet_device_class()

VNET_DEVICE_CLASS_TX_FN() af_packet_device_class ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 81 of file device.c.

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

◆ af_packet_interface_admin_up_down()

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

Definition at line 205 of file device.c.

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

◆ af_packet_set_interface_next_node()

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

Definition at line 178 of file device.c.

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

◆ af_packet_set_mac_address_function()

static clib_error_t* af_packet_set_mac_address_function ( struct vnet_hw_interface_t hi,
const u8 old_address,
const u8 address 
)
static

Definition at line 283 of file device.c.

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

◆ af_packet_subif_add_del_function()

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

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

◆ format_af_packet_device()

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

Definition at line 68 of file device.c.

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

◆ format_af_packet_device_name()

u8* format_af_packet_device_name ( u8 s,
va_list *  args 
)

Definition at line 56 of file device.c.

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

◆ format_af_packet_tx_trace()

static u8* format_af_packet_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:

◆ VNET_DEVICE_CLASS()

VNET_DEVICE_CLASS ( af_packet_device_class  )

Variable Documentation

◆ af_packet_tx_func_error_strings

char* af_packet_tx_func_error_strings[]
static
Initial value:
= {
#define _(n,s)
}
#define foreach_af_packet_tx_func_error
Definition: device.c:33

Definition at line 47 of file device.c.