FD.io VPP  v16.09
Vector Packet Processing
interface.c File Reference
+ Include dependency graph for interface.c:

Go to the source code of this file.

Data Structures

struct  vnet_sw_hw_interface_state_t
 

Macros

#define VNET_INTERFACE_SET_FLAGS_HELPER_IS_CREATE   (1 << 0)
 
#define VNET_INTERFACE_SET_FLAGS_HELPER_WANT_REDISTRIBUTE   (1 << 1)
 
#define VNET_INTERFACE_SET_FLAGS_HELPER_IS_CREATE   (1 << 0)
 
#define VNET_INTERFACE_SET_FLAGS_HELPER_WANT_REDISTRIBUTE   (1 << 1)
 

Functions

static clib_error_tvnet_hw_interface_set_flags_helper (vnet_main_t *vnm, u32 hw_if_index, u32 flags, u32 helper_flags)
 
static clib_error_tvnet_sw_interface_set_flags_helper (vnet_main_t *vnm, u32 sw_if_index, u32 flags, u32 helper_flags)
 
static clib_error_tvnet_hw_interface_set_class_helper (vnet_main_t *vnm, u32 hw_if_index, u32 hw_class_index, u32 redistribute)
 
static void serialize_vec_vnet_sw_hw_interface_state (serialize_main_t *m, va_list *va)
 
static void unserialize_vec_vnet_sw_hw_interface_state (serialize_main_t *m, va_list *va)
 
static void serialize_vnet_sw_hw_interface_set_flags (serialize_main_t *m, va_list *va)
 
static void unserialize_vnet_sw_interface_set_flags (serialize_main_t *m, va_list *va)
 
static void unserialize_vnet_hw_interface_set_flags (serialize_main_t *m, va_list *va)
 
 MC_SERIALIZE_MSG (vnet_sw_interface_set_flags_msg, static)
 
 MC_SERIALIZE_MSG (vnet_hw_interface_set_flags_msg, static)
 
void serialize_vnet_interface_state (serialize_main_t *m, va_list *va)
 
void unserialize_vnet_interface_state (serialize_main_t *m, va_list *va)
 
static clib_error_tcall_elf_section_interface_callbacks (vnet_main_t *vnm, u32 if_index, u32 flags, _vnet_interface_function_list_elt_t *elt)
 
static clib_error_tcall_hw_interface_add_del_callbacks (vnet_main_t *vnm, u32 hw_if_index, u32 is_create)
 
static clib_error_tcall_sw_interface_add_del_callbacks (vnet_main_t *vnm, u32 sw_if_index, u32 is_create)
 
clib_error_tvnet_hw_interface_set_flags (vnet_main_t *vnm, u32 hw_if_index, u32 flags)
 
clib_error_tvnet_sw_interface_set_flags (vnet_main_t *vnm, u32 sw_if_index, u32 flags)
 
static u32 vnet_create_sw_interface_no_callbacks (vnet_main_t *vnm, vnet_sw_interface_t *template)
 
clib_error_tvnet_create_sw_interface (vnet_main_t *vnm, vnet_sw_interface_t *template, u32 *sw_if_index)
 
void vnet_delete_sw_interface (vnet_main_t *vnm, u32 sw_if_index)
 
static void setup_tx_node (vlib_main_t *vm, u32 node_index, vnet_device_class_t *dev_class)
 
static void setup_output_node (vlib_main_t *vm, u32 node_index, vnet_hw_interface_class_t *hw_class)
 
u32 vnet_register_interface (vnet_main_t *vnm, u32 dev_class_index, u32 dev_instance, u32 hw_class_index, u32 hw_instance)
 
void vnet_delete_hw_interface (vnet_main_t *vnm, u32 hw_if_index)
 
static void serialize_vnet_hw_interface_set_class (serialize_main_t *m, va_list *va)
 
static void unserialize_vnet_hw_interface_set_class (serialize_main_t *m, va_list *va)
 
 MC_SERIALIZE_MSG (vnet_hw_interface_set_class_msg, static)
 
void vnet_hw_interface_init_for_class (vnet_main_t *vnm, u32 hw_if_index, u32 hw_class_index, u32 hw_instance)
 
clib_error_tvnet_hw_interface_set_class (vnet_main_t *vnm, u32 hw_if_index, u32 hw_class_index)
 
static int vnet_hw_interface_rx_redirect_to_node_helper (vnet_main_t *vnm, u32 hw_if_index, u32 node_index, u32 redistribute)
 
int vnet_hw_interface_rx_redirect_to_node (vnet_main_t *vnm, u32 hw_if_index, u32 node_index)
 
word vnet_sw_interface_compare (vnet_main_t *vnm, uword sw_if_index0, uword sw_if_index1)
 
word vnet_hw_interface_compare (vnet_main_t *vnm, uword hw_if_index0, uword hw_if_index1)
 
clib_error_tvnet_interface_init (vlib_main_t *vm)
 
int vnet_interface_name_renumber (u32 sw_if_index, u32 new_show_dev_instance)
 
int vnet_interface_add_del_feature (vnet_main_t *vnm, vlib_main_t *vm, u32 sw_if_index, intf_output_feat_t feature, int is_add)
 
clib_error_tvnet_rename_interface (vnet_main_t *vnm, u32 hw_if_index, char *new_name)
 

Macro Definition Documentation

#define VNET_INTERFACE_SET_FLAGS_HELPER_IS_CREATE   (1 << 0)

Definition at line 292 of file interface.c.

#define VNET_INTERFACE_SET_FLAGS_HELPER_IS_CREATE   (1 << 0)

Definition at line 292 of file interface.c.

#define VNET_INTERFACE_SET_FLAGS_HELPER_WANT_REDISTRIBUTE   (1 << 1)

Definition at line 293 of file interface.c.

#define VNET_INTERFACE_SET_FLAGS_HELPER_WANT_REDISTRIBUTE   (1 << 1)

Definition at line 293 of file interface.c.

Function Documentation

static clib_error_t* call_elf_section_interface_callbacks ( vnet_main_t vnm,
u32  if_index,
u32  flags,
_vnet_interface_function_list_elt_t *  elt 
)
static

Definition at line 239 of file interface.c.

+ Here is the caller graph for this function:

static clib_error_t* call_hw_interface_add_del_callbacks ( vnet_main_t vnm,
u32  hw_if_index,
u32  is_create 
)
static

Definition at line 257 of file interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* call_sw_interface_add_del_callbacks ( vnet_main_t vnm,
u32  sw_if_index,
u32  is_create 
)
static

Definition at line 285 of file interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

MC_SERIALIZE_MSG ( vnet_sw_interface_set_flags_msg  ,
static   
)

+ Here is the caller graph for this function:

MC_SERIALIZE_MSG ( vnet_hw_interface_set_flags_msg  ,
static   
)
MC_SERIALIZE_MSG ( vnet_hw_interface_set_class_msg  ,
static   
)
static void serialize_vec_vnet_sw_hw_interface_state ( serialize_main_t m,
va_list *  va 
)
static

Definition at line 71 of file interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void serialize_vnet_hw_interface_set_class ( serialize_main_t m,
va_list *  va 
)
static

Definition at line 877 of file interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void serialize_vnet_interface_state ( serialize_main_t m,
va_list *  va 
)

Definition at line 148 of file interface.c.

static void serialize_vnet_sw_hw_interface_set_flags ( serialize_main_t m,
va_list *  va 
)
static

Definition at line 102 of file interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void setup_output_node ( vlib_main_t vm,
u32  node_index,
vnet_hw_interface_class_t hw_class 
)
static

Definition at line 640 of file interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void setup_tx_node ( vlib_main_t vm,
u32  node_index,
vnet_device_class_t dev_class 
)
static

Definition at line 627 of file interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void unserialize_vec_vnet_sw_hw_interface_state ( serialize_main_t m,
va_list *  va 
)
static

Definition at line 86 of file interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void unserialize_vnet_hw_interface_set_class ( serialize_main_t m,
va_list *  va 
)
static

Definition at line 886 of file interface.c.

+ Here is the call graph for this function:

static void unserialize_vnet_hw_interface_set_flags ( serialize_main_t m,
va_list *  va 
)
static

Definition at line 123 of file interface.c.

+ Here is the call graph for this function:

void unserialize_vnet_interface_state ( serialize_main_t m,
va_list *  va 
)

Definition at line 199 of file interface.c.

+ Here is the call graph for this function:

static void unserialize_vnet_sw_interface_set_flags ( serialize_main_t m,
va_list *  va 
)
static

Definition at line 110 of file interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* vnet_create_sw_interface ( vnet_main_t vnm,
vnet_sw_interface_t template,
u32 sw_if_index 
)

Definition at line 573 of file interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u32 vnet_create_sw_interface_no_callbacks ( vnet_main_t vnm,
vnet_sw_interface_t template 
)
static

Definition at line 529 of file interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vnet_delete_hw_interface ( vnet_main_t vnm,
u32  hw_if_index 
)

Definition at line 827 of file interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vnet_delete_sw_interface ( vnet_main_t vnm,
u32  sw_if_index 
)

Definition at line 611 of file interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

word vnet_hw_interface_compare ( vnet_main_t vnm,
uword  hw_if_index0,
uword  hw_if_index1 
)

Definition at line 1045 of file interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vnet_hw_interface_init_for_class ( vnet_main_t vnm,
u32  hw_if_index,
u32  hw_class_index,
u32  hw_instance 
)

Definition at line 913 of file interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vnet_hw_interface_rx_redirect_to_node ( vnet_main_t vnm,
u32  hw_if_index,
u32  node_index 
)

Definition at line 1022 of file interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int vnet_hw_interface_rx_redirect_to_node_helper ( vnet_main_t vnm,
u32  hw_if_index,
u32  node_index,
u32  redistribute 
)
static

Definition at line 998 of file interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* vnet_hw_interface_set_class ( vnet_main_t vnm,
u32  hw_if_index,
u32  hw_class_index 
)

Definition at line 990 of file interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t * vnet_hw_interface_set_class_helper ( vnet_main_t vnm,
u32  hw_if_index,
u32  hw_class_index,
u32  redistribute 
)
static

Definition at line 926 of file interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* vnet_hw_interface_set_flags ( vnet_main_t vnm,
u32  hw_if_index,
u32  flags 
)

Definition at line 513 of file interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t * vnet_hw_interface_set_flags_helper ( vnet_main_t vnm,
u32  hw_if_index,
u32  flags,
u32  helper_flags 
)
static

Definition at line 296 of file interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vnet_interface_add_del_feature ( vnet_main_t vnm,
vlib_main_t vm,
u32  sw_if_index,
intf_output_feat_t  feature,
int  is_add 
)

Definition at line 1180 of file interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* vnet_interface_init ( vlib_main_t vm)

Definition at line 1057 of file interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vnet_interface_name_renumber ( u32  sw_if_index,
u32  new_show_dev_instance 
)

Definition at line 1151 of file interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 vnet_register_interface ( vnet_main_t vnm,
u32  dev_class_index,
u32  dev_instance,
u32  hw_class_index,
u32  hw_instance 
)

Definition at line 650 of file interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* vnet_rename_interface ( vnet_main_t vnm,
u32  hw_if_index,
char *  new_name 
)

Definition at line 1208 of file interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

word vnet_sw_interface_compare ( vnet_main_t vnm,
uword  sw_if_index0,
uword  sw_if_index1 
)

Definition at line 1031 of file interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* vnet_sw_interface_set_flags ( vnet_main_t vnm,
u32  sw_if_index,
u32  flags 
)

Definition at line 521 of file interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t * vnet_sw_interface_set_flags_helper ( vnet_main_t vnm,
u32  sw_if_index,
u32  flags,
u32  helper_flags 
)
static

Definition at line 361 of file interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: