FD.io VPP  v18.07-rc0-415-g6c78436
Vector Packet Processing
device.c File Reference
+ Include dependency graph for device.c:

Go to the source code of this file.

Macros

#define foreach_bond_tx_error
 

Enumerations

enum  bond_tx_error_t { BOND_TX_N_ERROR }
 

Functions

static u8format_bond_tx_trace (u8 *s, va_list *args)
 
u8format_bond_interface_name (u8 *s, va_list *args)
 
static __clib_unused clib_error_tbond_set_l2_mode_function (vnet_main_t *vnm, struct vnet_hw_interface_t *bif_hw, i32 l2_if_adjust)
 
static __clib_unused clib_error_tbond_subif_add_del_function (vnet_main_t *vnm, u32 hw_if_index, struct vnet_sw_interface_t *st, int is_add)
 
static clib_error_tbond_interface_admin_up_down (vnet_main_t *vnm, u32 hw_if_index, u32 flags)
 
static_always_inline u32 bond_load_balance_broadcast (vlib_main_t *vm, vlib_node_runtime_t *node, bond_if_t *bif, vlib_buffer_t *b0, uword slave_count)
 
static_always_inline u32 bond_load_balance_l2 (vlib_main_t *vm, vlib_node_runtime_t *node, bond_if_t *bif, vlib_buffer_t *b0, uword slave_count)
 
static_always_inline u16bond_locate_ethertype (ethernet_header_t *eth)
 
static_always_inline u32 bond_load_balance_l23 (vlib_main_t *vm, vlib_node_runtime_t *node, bond_if_t *bif, vlib_buffer_t *b0, uword slave_count)
 
static_always_inline u32 bond_load_balance_l34 (vlib_main_t *vm, vlib_node_runtime_t *node, bond_if_t *bif, vlib_buffer_t *b0, uword slave_count)
 
static_always_inline u32 bond_load_balance_round_robin (vlib_main_t *vm, vlib_node_runtime_t *node, bond_if_t *bif, vlib_buffer_t *b0, uword slave_count)
 
static_always_inline u32 bond_load_balance_active_backup (vlib_main_t *vm, vlib_node_runtime_t *node, bond_if_t *bif, vlib_buffer_t *b0, uword slave_count)
 
static uword bond_tx_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static walk_rc_t bond_active_interface_switch_cb (vnet_main_t *vnm, u32 sw_if_index, void *arg)
 
static uword bond_process (vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)
 
 VNET_DEVICE_CLASS (bond_dev_class)
 

Variables

static char * bond_tx_error_strings []
 
static bond_load_balance_func_t bond_load_balance_table []
 
vlib_node_registration_t bond_process_node
 (constructor) VLIB_REGISTER_NODE (bond_process_node) More...
 

Macro Definition Documentation

#define foreach_bond_tx_error
Value:
_(NONE, "no error") \
_(IF_DOWN, "interface down") \
_(NO_SLAVE, "no slave")

Definition at line 29 of file device.c.

Enumeration Type Documentation

Enumerator
BOND_TX_N_ERROR 

Definition at line 34 of file device.c.

Function Documentation

static walk_rc_t bond_active_interface_switch_cb ( vnet_main_t vnm,
u32  sw_if_index,
void *  arg 
)
static

Definition at line 706 of file device.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 118 of file device.c.

+ Here is the call graph for this function:

static_always_inline u32 bond_load_balance_active_backup ( vlib_main_t vm,
vlib_node_runtime_t node,
bond_if_t bif,
vlib_buffer_t b0,
uword  slave_count 
)

Definition at line 375 of file device.c.

static_always_inline u32 bond_load_balance_broadcast ( vlib_main_t vm,
vlib_node_runtime_t node,
bond_if_t bif,
vlib_buffer_t b0,
uword  slave_count 
)

Definition at line 133 of file device.c.

+ Here is the call graph for this function:

static_always_inline u32 bond_load_balance_l2 ( vlib_main_t vm,
vlib_node_runtime_t node,
bond_if_t bif,
vlib_buffer_t b0,
uword  slave_count 
)

Definition at line 167 of file device.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static_always_inline u32 bond_load_balance_l23 ( vlib_main_t vm,
vlib_node_runtime_t node,
bond_if_t bif,
vlib_buffer_t b0,
uword  slave_count 
)

Definition at line 209 of file device.c.

+ Here is the call graph for this function:

static_always_inline u32 bond_load_balance_l34 ( vlib_main_t vm,
vlib_node_runtime_t node,
bond_if_t bif,
vlib_buffer_t b0,
uword  slave_count 
)

Definition at line 276 of file device.c.

+ Here is the call graph for this function:

static_always_inline u32 bond_load_balance_round_robin ( vlib_main_t vm,
vlib_node_runtime_t node,
bond_if_t bif,
vlib_buffer_t b0,
uword  slave_count 
)

Definition at line 360 of file device.c.

static_always_inline u16* bond_locate_ethertype ( ethernet_header_t eth)

Definition at line 186 of file device.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uword bond_process ( vlib_main_t vm,
vlib_node_runtime_t rt,
vlib_frame_t f 
)
static

Definition at line 718 of file device.c.

+ Here is the call graph for this function:

static __clib_unused clib_error_t* bond_set_l2_mode_function ( vnet_main_t vnm,
struct vnet_hw_interface_t bif_hw,
i32  l2_if_adjust 
)
static

Definition at line 80 of file device.c.

+ Here is the call graph for this function:

static __clib_unused clib_error_t* bond_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 110 of file device.c.

static uword bond_tx_fn ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 391 of file device.c.

+ Here is the call graph for this function:

u8* format_bond_interface_name ( u8 s,
va_list *  args 
)

Definition at line 68 of file device.c.

+ Here is the call graph for this function:

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

Definition at line 49 of file device.c.

+ Here is the call graph for this function:

VNET_DEVICE_CLASS ( bond_dev_class  )

+ Here is the caller graph for this function:

Variable Documentation

bond_load_balance_func_t bond_load_balance_table[]
static
Initial value:
= {
#define _(v,f,s, p)
}

Definition at line 384 of file device.c.

vlib_node_registration_t bond_process_node
Initial value:
= {
.function = bond_process,
.name = "bond-process",
}
static uword bond_process(vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)
Definition: device.c:718

(constructor) VLIB_REGISTER_NODE (bond_process_node)

Definition at line 744 of file device.c.

char* bond_tx_error_strings[]
static
Initial value:
= {
#define _(n,s)
}
#define foreach_bond_tx_error
Definition: device.c:29

Definition at line 42 of file device.c.