FD.io VPP  v18.07-rc0-415-g6c78436
Vector Packet Processing
avf.h File Reference
+ Include dependency graph for avf.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  avf_rx_desc_t
 
struct  avf_tx_desc_t
 
struct  avf_rxq_t
 
struct  avf_txq_t
 
struct  avf_device_t
 
struct  avf_rx_vector_entry_t
 
struct  avf_per_thread_data_t
 
struct  avf_ptype_t
 
struct  avf_main_t
 
struct  avf_create_if_args_t
 
struct  avf_input_trace_t
 

Macros

#define foreach_avf_device_flags
 
#define AVF_RX_VECTOR_SZ   VLIB_FRAME_SIZE
 

Enumerations

enum  { foreach_avf_device_flags }
 
enum  { AVF_PROCESS_EVENT_START = 1, AVF_PROCESS_EVENT_STOP = 2, AVF_PROCESS_EVENT_AQ_INT = 3 }
 

Functions

 STATIC_ASSERT_SIZEOF (avf_rx_desc_t, 32)
 
 STATIC_ASSERT_SIZEOF (avf_tx_desc_t, 16)
 
 STATIC_ASSERT_SIZEOF (avf_rx_vector_entry_t, 8)
 
 STATIC_ASSERT (VNET_DEVICE_INPUT_N_NEXT_NODES< 256,"too many next nodes")
 
void avf_create_if (vlib_main_t *vm, avf_create_if_args_t *args)
 
void avf_delete_if (vlib_main_t *vm, avf_device_t *ad)
 
uword avf_interface_tx (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static u32 avf_get_u32 (void *start, int offset)
 
static u64 avf_get_u64 (void *start, int offset)
 
static u32 avf_get_u32_bits (void *start, int offset, int first, int last)
 
static u64 avf_get_u64_bits (void *start, int offset, int first, int last)
 
static void avf_set_u32 (void *start, int offset, u32 value)
 
static void avf_reg_write (avf_device_t *ad, u32 addr, u32 val)
 
static u32 avf_reg_read (avf_device_t *ad, u32 addr)
 
static void avf_reg_flush (avf_device_t *ad)
 

Variables

enum { ... }  avf_process_event_t
 
avf_main_t avf_main
 
vlib_node_registration_t avf_input_node
 (constructor) VLIB_REGISTER_NODE (avf_input_node) More...
 
vnet_device_class_t avf_device_class
 
format_function_t format_avf_device
 
format_function_t format_avf_device_name
 
format_function_t format_avf_input_trace
 

Macro Definition Documentation

#define AVF_RX_VECTOR_SZ   VLIB_FRAME_SIZE

Definition at line 133 of file avf.h.

#define foreach_avf_device_flags
Value:
_(0, INITIALIZED, "initialized") \
_(1, ERROR, "error") \
_(2, ADMIN_UP, "admin-up") \
_(3, IOVA, "iova") \
_(4, LINK_UP, "link-up") \
_(5, SHARED_TXQ_LOCK, "shared-txq-lock") \
_(6, ELOG, "elog")
#define ELOG(em, f, data)
Definition: elog.h:471

Definition at line 22 of file avf.h.

Enumeration Type Documentation

anonymous enum
Enumerator
foreach_avf_device_flags 

Definition at line 31 of file avf.h.

anonymous enum
Enumerator
AVF_PROCESS_EVENT_START 
AVF_PROCESS_EVENT_STOP 
AVF_PROCESS_EVENT_AQ_INT 

Definition at line 135 of file avf.h.

Function Documentation

void avf_create_if ( vlib_main_t vm,
avf_create_if_args_t args 
)

Definition at line 1062 of file device.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void avf_delete_if ( vlib_main_t vm,
avf_device_t ad 
)

Definition at line 1007 of file device.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u32 avf_get_u32 ( void *  start,
int  offset 
)
inlinestatic

Definition at line 197 of file avf.h.

+ Here is the caller graph for this function:

static u32 avf_get_u32_bits ( void *  start,
int  offset,
int  first,
int  last 
)
inlinestatic

Definition at line 209 of file avf.h.

+ Here is the call graph for this function:

static u64 avf_get_u64 ( void *  start,
int  offset 
)
inlinestatic

Definition at line 203 of file avf.h.

+ Here is the caller graph for this function:

static u64 avf_get_u64_bits ( void *  start,
int  offset,
int  first,
int  last 
)
inlinestatic

Definition at line 220 of file avf.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uword avf_interface_tx ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 38 of file output.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void avf_reg_flush ( avf_device_t ad)
inlinestatic

Definition at line 249 of file avf.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u32 avf_reg_read ( avf_device_t ad,
u32  addr 
)
inlinestatic

Definition at line 243 of file avf.h.

+ Here is the caller graph for this function:

static void avf_reg_write ( avf_device_t ad,
u32  addr,
u32  val 
)
inlinestatic

Definition at line 237 of file avf.h.

+ Here is the caller graph for this function:

static void avf_set_u32 ( void *  start,
int  offset,
u32  value 
)
inlinestatic

Definition at line 231 of file avf.h.

STATIC_ASSERT ( )
STATIC_ASSERT_SIZEOF ( avf_rx_desc_t  ,
32   
)
STATIC_ASSERT_SIZEOF ( avf_tx_desc_t  ,
16   
)
STATIC_ASSERT_SIZEOF ( avf_rx_vector_entry_t  ,
 
)

Variable Documentation

vnet_device_class_t avf_device_class
vlib_node_registration_t avf_input_node

(constructor) VLIB_REGISTER_NODE (avf_input_node)

Definition at line 535 of file input.c.

avf_main_t avf_main

Definition at line 36 of file device.c.

enum { ... } avf_process_event_t
format_function_t format_avf_device

Definition at line 192 of file avf.h.

format_function_t format_avf_device_name

Definition at line 193 of file avf.h.

format_function_t format_avf_input_trace

Definition at line 194 of file avf.h.