FD.io VPP  v21.01.1
Vector Packet Processing
stream.c File Reference
+ Include dependency graph for stream.c:

Go to the source code of this file.

Functions

void pg_stream_enable_disable (pg_main_t *pg, pg_stream_t *s, int want_enabled)
 
static u8format_pg_output_trace (u8 *s, va_list *va)
 
static u8format_pg_interface_name (u8 *s, va_list *args)
 
static clib_error_tpg_interface_admin_up_down (vnet_main_t *vnm, u32 hw_if_index, u32 flags)
 
static int pg_mac_address_cmp (const mac_address_t *m1, const mac_address_t *m2)
 
static clib_error_tpg_add_del_mac_address (vnet_hw_interface_t *hi, const u8 *address, u8 is_add)
 
 VNET_DEVICE_CLASS (pg_dev_class)
 
static u8pg_build_rewrite (vnet_main_t *vnm, u32 sw_if_index, vnet_link_t link_type, const void *dst_address)
 
 VNET_HW_INTERFACE_CLASS (pg_interface_class, static)
 
static u32 pg_eth_flag_change (vnet_main_t *vnm, vnet_hw_interface_t *hi, u32 flags)
 
void pg_interface_enable_disable_coalesce (pg_interface_t *pi, u8 enable, u32 tx_node_index)
 
u32 pg_interface_add_or_get (pg_main_t *pg, uword if_id, u8 gso_enabled, u32 gso_size, u8 coalesce_enabled)
 
static void do_edit (pg_stream_t *stream, pg_edit_group_t *g, pg_edit_t *e, uword want_commit)
 
void pg_edit_group_get_fixed_packet_data (pg_stream_t *s, u32 group_index, void *packet_data, void *packet_data_mask)
 
static void perform_fixed_edits (pg_stream_t *s)
 
void pg_stream_add (pg_main_t *pg, pg_stream_t *s_init)
 
void pg_stream_del (pg_main_t *pg, uword index)
 
void pg_stream_change (pg_main_t *pg, pg_stream_t *s)
 

Function Documentation

◆ do_edit()

static void do_edit ( pg_stream_t stream,
pg_edit_group_t g,
pg_edit_t e,
uword  want_commit 
)
static

Definition at line 297 of file stream.c.

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

◆ format_pg_interface_name()

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

Definition at line 117 of file stream.c.

+ Here is the caller graph for this function:

◆ format_pg_output_trace()

static u8* format_pg_output_trace ( u8 s,
va_list *  va 
)
static

Definition at line 98 of file stream.c.

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

◆ perform_fixed_edits()

static void perform_fixed_edits ( pg_stream_t s)
static

Definition at line 408 of file stream.c.

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

◆ pg_add_del_mac_address()

static clib_error_t* pg_add_del_mac_address ( vnet_hw_interface_t hi,
const u8 address,
u8  is_add 
)
static

Definition at line 149 of file stream.c.

+ Here is the call graph for this function:

◆ pg_build_rewrite()

static u8* pg_build_rewrite ( vnet_main_t vnm,
u32  sw_if_index,
vnet_link_t  link_type,
const void *  dst_address 
)
static

Definition at line 187 of file stream.c.

+ Here is the call graph for this function:

◆ pg_edit_group_get_fixed_packet_data()

void pg_edit_group_get_fixed_packet_data ( pg_stream_t s,
u32  group_index,
void *  packet_data,
void *  packet_data_mask 
)

Definition at line 391 of file stream.c.

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

◆ pg_eth_flag_change()

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

Definition at line 209 of file stream.c.

+ Here is the caller graph for this function:

◆ pg_interface_add_or_get()

u32 pg_interface_add_or_get ( pg_main_t pg,
uword  if_id,
u8  gso_enabled,
u32  gso_size,
u8  coalesce_enabled 
)

Definition at line 233 of file stream.c.

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

◆ pg_interface_admin_up_down()

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

Definition at line 130 of file stream.c.

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

◆ pg_interface_enable_disable_coalesce()

void pg_interface_enable_disable_coalesce ( pg_interface_t pi,
u8  enable,
u32  tx_node_index 
)

Definition at line 216 of file stream.c.

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

◆ pg_mac_address_cmp()

static int pg_mac_address_cmp ( const mac_address_t m1,
const mac_address_t m2 
)
static

Definition at line 143 of file stream.c.

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

◆ pg_stream_add()

void pg_stream_add ( pg_main_t pg,
pg_stream_t s_init 
)

Definition at line 450 of file stream.c.

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

◆ pg_stream_change()

void pg_stream_change ( pg_main_t pg,
pg_stream_t s 
)

Definition at line 554 of file stream.c.

+ Here is the caller graph for this function:

◆ pg_stream_del()

void pg_stream_del ( pg_main_t pg,
uword  index 
)

Definition at line 534 of file stream.c.

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

◆ pg_stream_enable_disable()

void pg_stream_enable_disable ( pg_main_t pg,
pg_stream_t s,
int  want_enabled 
)

Definition at line 49 of file stream.c.

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

◆ VNET_DEVICE_CLASS()

VNET_DEVICE_CLASS ( pg_dev_class  )
+ Here is the caller graph for this function:

◆ VNET_HW_INTERFACE_CLASS()

VNET_HW_INTERFACE_CLASS ( pg_interface_class  ,
static   
)
+ Here is the caller graph for this function: