FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
cli.c File Reference
+ Include dependency graph for cli.c:

Go to the source code of this file.

Functions

void bond_disable_collecting_distributing (vlib_main_t *vm, member_if_t *mif)
 
static int bond_member_sort (void *a1, void *a2)
 
static void bond_sort_members (bond_if_t *bif)
 
void bond_enable_collecting_distributing (vlib_main_t *vm, member_if_t *mif)
 
int bond_dump_ifs (bond_interface_details_t **out_bondifs)
 
int bond_dump_member_ifs (member_interface_details_t **out_memberifs, u32 bond_sw_if_index)
 
static void bond_member_add_del_mac_addrs (bond_if_t *bif, u32 mif_sw_if_index, u8 is_add)
 
static void bond_delete_neighbor (vlib_main_t *vm, bond_if_t *bif, member_if_t *mif)
 
int bond_delete_if (vlib_main_t *vm, u32 sw_if_index)
 
void bond_create_if (vlib_main_t *vm, bond_create_if_args_t *args)
 
static clib_error_tbond_create_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tbond_delete_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
void bond_add_member (vlib_main_t *vm, bond_add_member_args_t *args)
 
static clib_error_tadd_member_interface_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
void bond_detach_member (vlib_main_t *vm, bond_detach_member_args_t *args)
 
static clib_error_tdetach_interface_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static void show_bond (vlib_main_t *vm)
 
static void show_bond_details (vlib_main_t *vm)
 
static clib_error_tshow_bond_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
void bond_set_intf_weight (vlib_main_t *vm, bond_set_intf_weight_args_t *args)
 
static clib_error_tbond_set_intf_cmd (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
clib_error_tbond_cli_init (vlib_main_t *vm)
 

Variables

static vlib_cli_command_t bond_create_command
 (constructor) VLIB_CLI_COMMAND (bond_create_command) More...
 
static vlib_cli_command_t bond_delete__command
 (constructor) VLIB_CLI_COMMAND (bond_delete__command) More...
 
static vlib_cli_command_t add_member_interface_command
 (constructor) VLIB_CLI_COMMAND (add_member_interface_command) More...
 
static vlib_cli_command_t detach_interface_command
 (constructor) VLIB_CLI_COMMAND (detach_interface_command) More...
 
static vlib_cli_command_t show_bond_command
 (constructor) VLIB_CLI_COMMAND (show_bond_command) More...
 
static vlib_cli_command_t set_interface_bond_cmd
 (constructor) VLIB_CLI_COMMAND (set_interface_bond_cmd) More...
 

Function Documentation

◆ add_member_interface_command_fn()

static clib_error_t* add_member_interface_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 775 of file cli.c.

+ Here is the call graph for this function:

◆ bond_add_member()

void bond_add_member ( vlib_main_t vm,
bond_add_member_args_t args 
)

Definition at line 600 of file cli.c.

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

◆ bond_cli_init()

clib_error_t* bond_cli_init ( vlib_main_t vm)

Definition at line 1104 of file cli.c.

+ Here is the call graph for this function:

◆ bond_create_command_fn()

static clib_error_t* bond_create_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 485 of file cli.c.

+ Here is the call graph for this function:

◆ bond_create_if()

void bond_create_if ( vlib_main_t vm,
bond_create_if_args_t args 
)

Definition at line 377 of file cli.c.

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

◆ bond_delete_command_fn()

static clib_error_t* bond_delete_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 552 of file cli.c.

+ Here is the call graph for this function:

◆ bond_delete_if()

int bond_delete_if ( vlib_main_t vm,
u32  sw_if_index 
)

Definition at line 336 of file cli.c.

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

◆ bond_delete_neighbor()

static void bond_delete_neighbor ( vlib_main_t vm,
bond_if_t bif,
member_if_t mif 
)
static

Definition at line 283 of file cli.c.

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

◆ bond_detach_member()

void bond_detach_member ( vlib_main_t vm,
bond_detach_member_args_t args 
)

Definition at line 830 of file cli.c.

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

◆ bond_disable_collecting_distributing()

void bond_disable_collecting_distributing ( vlib_main_t vm,
member_if_t mif 
)

Definition at line 26 of file cli.c.

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

◆ bond_dump_ifs()

int bond_dump_ifs ( bond_interface_details_t **  out_bondifs)

Definition at line 177 of file cli.c.

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

◆ bond_dump_member_ifs()

int bond_dump_member_ifs ( member_interface_details_t **  out_memberifs,
u32  bond_sw_if_index 
)

Definition at line 212 of file cli.c.

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

◆ bond_enable_collecting_distributing()

void bond_enable_collecting_distributing ( vlib_main_t vm,
member_if_t mif 
)

Definition at line 134 of file cli.c.

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

◆ bond_member_add_del_mac_addrs()

static void bond_member_add_del_mac_addrs ( bond_if_t bif,
u32  mif_sw_if_index,
u8  is_add 
)
static

Definition at line 263 of file cli.c.

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

◆ bond_member_sort()

static int bond_member_sort ( void *  a1,
void *  a2 
)
static

Definition at line 73 of file cli.c.

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

◆ bond_set_intf_cmd()

static clib_error_t* bond_set_intf_cmd ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 1044 of file cli.c.

+ Here is the call graph for this function:

◆ bond_set_intf_weight()

void bond_set_intf_weight ( vlib_main_t vm,
bond_set_intf_weight_args_t args 
)

Definition at line 997 of file cli.c.

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

◆ bond_sort_members()

static void bond_sort_members ( bond_if_t bif)
static

Definition at line 122 of file cli.c.

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

◆ detach_interface_command_fn()

static clib_error_t* detach_interface_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 847 of file cli.c.

+ Here is the call graph for this function:

◆ show_bond()

static void show_bond ( vlib_main_t vm)
static

Definition at line 893 of file cli.c.

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

◆ show_bond_details()

static void show_bond_details ( vlib_main_t vm)
static

Definition at line 915 of file cli.c.

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

◆ show_bond_fn()

static clib_error_t* show_bond_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 964 of file cli.c.

+ Here is the call graph for this function:

Variable Documentation

◆ add_member_interface_command

vlib_cli_command_t add_member_interface_command
static
Initial value:
= {
.path = "bond add",
.short_help = "bond add <BondEthernetx> <member-interface> "
"[passive] [long-timeout]",
}

(constructor) VLIB_CLI_COMMAND (add_member_interface_command)

Definition at line 821 of file cli.c.

◆ bond_create_command

vlib_cli_command_t bond_create_command
static
Initial value:
= {
.path = "create bond",
.short_help = "create bond mode {round-robin | active-backup | broadcast | "
"{lacp | xor} [load-balance { l2 | l23 | l34 } [numa-only]]} "
"[hw-addr <mac-address>] [id <if-id>] [gso]",
}

(constructor) VLIB_CLI_COMMAND (bond_create_command)

Definition at line 542 of file cli.c.

◆ bond_delete__command

vlib_cli_command_t bond_delete__command
static
Initial value:
=
{
.path = "delete bond",
.short_help = "delete bond {<interface> | sw_if_index <sw_idx>}",
}

(constructor) VLIB_CLI_COMMAND (bond_delete__command)

Definition at line 591 of file cli.c.

◆ detach_interface_command

vlib_cli_command_t detach_interface_command
static
Initial value:
= {
.path = "bond del",
.short_help = "bond del <member-interface>",
}

(constructor) VLIB_CLI_COMMAND (detach_interface_command)

Definition at line 885 of file cli.c.

◆ set_interface_bond_cmd

vlib_cli_command_t set_interface_bond_cmd
static
Initial value:
= {
.path = "set interface bond",
.short_help = "set interface bond <interface> | sw_if_index <idx>"
" weight <value>",
.function = bond_set_intf_cmd,
}

(constructor) VLIB_CLI_COMMAND (set_interface_bond_cmd)

Definition at line 1095 of file cli.c.

◆ show_bond_command

vlib_cli_command_t show_bond_command
static
Initial value:
= {
.path = "show bond",
.short_help = "show bond [details]",
.function = show_bond_fn,
}

(constructor) VLIB_CLI_COMMAND (show_bond_command)

Definition at line 989 of file cli.c.

bond_delete_command_fn
static clib_error_t * bond_delete_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:552
bond_set_intf_cmd
static clib_error_t * bond_set_intf_cmd(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:1044
add_member_interface_command_fn
static clib_error_t * add_member_interface_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:775
show_bond_fn
static clib_error_t * show_bond_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:964
detach_interface_command_fn
static clib_error_t * detach_interface_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:847
bond_create_command_fn
static clib_error_t * bond_create_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:485