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

Go to the source code of this file.

Macros

#define MV_SYS_DMA_MEM_SZ   (2 << 20)
 
#define NUM_HIFS_RSVD   4
 
#define NUM_BPOOLS_RSVD   7
 

Functions

static void mrvl_pp2_main_deinit ()
 
static clib_error_tmrvl_pp2_main_init ()
 
static u32 mrvl_pp2_eth_flag_change (vnet_main_t *vnm, vnet_hw_interface_t *hi, u32 flags)
 
void mrvl_pp2_delete_if (mrvl_pp2_if_t *ppif)
 
void mrvl_pp2_create_if (mrvl_pp2_create_if_args_t *args)
 
static clib_error_tmrvl_pp2_interface_admin_up_down (vnet_main_t *vnm, u32 hw_if_index, u32 flags)
 
static void mrvl_pp2_clear_interface_counters (u32 instance)
 
static void mrvl_pp2_set_interface_next_node (vnet_main_t *vnm, u32 hw_if_index, u32 node_index)
 
 VNET_DEVICE_CLASS (mrvl_pp2_device_class,)
 
static clib_error_tmrvl_pp2_init (vlib_main_t *vm)
 

Variables

mrvl_pp2_main_t mrvl_pp2_main
 
vnet_device_class_t ppa2_device_class
 
static char * mrvl_pp2_tx_func_error_strings []
 

Macro Definition Documentation

◆ MV_SYS_DMA_MEM_SZ

#define MV_SYS_DMA_MEM_SZ   (2 << 20)

Definition at line 30 of file pp2.c.

◆ NUM_BPOOLS_RSVD

#define NUM_BPOOLS_RSVD   7

Definition at line 34 of file pp2.c.

◆ NUM_HIFS_RSVD

#define NUM_HIFS_RSVD   4

Definition at line 32 of file pp2.c.

Function Documentation

◆ mrvl_pp2_clear_interface_counters()

static void mrvl_pp2_clear_interface_counters ( u32  instance)
static

Definition at line 346 of file pp2.c.

◆ mrvl_pp2_create_if()

void mrvl_pp2_create_if ( mrvl_pp2_create_if_args_t args)

Definition at line 180 of file pp2.c.

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

◆ mrvl_pp2_delete_if()

void mrvl_pp2_delete_if ( mrvl_pp2_if_t ppif)

Definition at line 115 of file pp2.c.

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

◆ mrvl_pp2_eth_flag_change()

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

Definition at line 107 of file pp2.c.

+ Here is the caller graph for this function:

◆ mrvl_pp2_init()

static clib_error_t* mrvl_pp2_init ( vlib_main_t vm)
static

Definition at line 397 of file pp2.c.

◆ mrvl_pp2_interface_admin_up_down()

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

Definition at line 318 of file pp2.c.

+ Here is the call graph for this function:

◆ mrvl_pp2_main_deinit()

static void mrvl_pp2_main_deinit ( )
static

Definition at line 40 of file pp2.c.

+ Here is the caller graph for this function:

◆ mrvl_pp2_main_init()

static clib_error_t* mrvl_pp2_main_init ( )
static

Definition at line 58 of file pp2.c.

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

◆ mrvl_pp2_set_interface_next_node()

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

Definition at line 356 of file pp2.c.

+ Here is the call graph for this function:

◆ VNET_DEVICE_CLASS()

VNET_DEVICE_CLASS ( mrvl_pp2_device_class  )

Variable Documentation

◆ mrvl_pp2_main

mrvl_pp2_main_t mrvl_pp2_main

Definition at line 36 of file pp2.c.

◆ mrvl_pp2_tx_func_error_strings

char* mrvl_pp2_tx_func_error_strings[]
static
Initial value:
= {
#define _(n,s)
}
#define foreach_mrvl_pp2_tx_func_error
Definition: pp2.h:102

Definition at line 375 of file pp2.c.

◆ ppa2_device_class

vnet_device_class_t ppa2_device_class