|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
66 *out_lacpifs = r_lacpifs;
84 "sw_if_index",
"bond interface",
85 "exp/def/dis/col/syn/agg/tim/act",
86 "exp/def/dis/col/syn/agg/tim/act");
95 "%-25U %-12d %-16U %3x %3x %3x %3x %3x %3x %3x %3x "
96 "%4x %3x %3x %3x %3x %3x %3x %3x",
118 "[(%04x,%02x-%02x-%02x-%02x-%02x-%02x,%04x,%04x,%04x), "
119 "(%04x,%02x-%02x-%02x-%02x-%02x-%02x,%04x,%04x,%04x)]",
135 " RX-state: %U, TX-state: %U, "
136 "MUX-state: %U, PTX-state: %U",
171 " last LACP PDU received: %10.2f seconds ago",
182 " last Marker PDU received: %10.2f seconds ago",
206 while (state_entry->
str)
208 if (mif->
actor.state & (1 << state_entry->
bit))
227 while (state_entry->
str)
229 if (mif->
partner.state & (1 << state_entry->
bit))
286 else if (
unformat (input,
"details"))
315 .short_help =
"show lacp [<interface>] [details]",
349 else if (
unformat (line_input,
"on"))
354 else if (
unformat (line_input,
"off"))
375 (0,
"Please add the member interface first"));
389 .path =
"debug lacp",
390 .short_help =
"debug lacp <interface> <on | off>",
static u8 * format_tx_sm_state(u8 *s, va_list *args)
f64 last_lacpdu_sent_time
static vlib_cli_command_t show_lacp_command
(constructor) VLIB_CLI_COMMAND (show_lacp_command)
#define clib_memcpy(d, s, n)
static bond_if_t * bond_get_bond_if_by_dev_instance(u32 dev_instance)
static u8 * format_ptx_sm_state(u8 *s, va_list *args)
static u8 lacp_timer_is_running(f64 timer)
int lacp_dump_ifs(lacp_interface_details_t **out_lacpifs)
u8 * format_ethernet_address(u8 *s, va_list *args)
static u8 * format_rx_sm_state(u8 *s, va_list *args)
#define clib_error_return(e, args...)
f64 last_marker_pdu_recd_time
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
static void show_lacp_details(vlib_main_t *vm, u32 *sw_if_indices)
u16 partner_port_priority
f64 last_lacpdu_recd_time
u16 partner_system_priority
static clib_error_t * debug_lacp_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
#define pool_foreach(VAR, POOL)
Iterate through pool.
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
#define vec_add2(V, P, N)
Add N elements to end of vector V, return pointer to new elements in P.
#define vec_add1(V, E)
Add 1 element to end of vector (unspecified alignment).
static vnet_hw_interface_t * vnet_get_hw_interface(vnet_main_t *vnm, u32 hw_if_index)
vnet_main_t * vnet_get_main(void)
static void show_lacp(vlib_main_t *vm, u32 *sw_if_indices)
sll srl srl sll sra u16x4 i
static vlib_cli_command_t debug_lacp_command
(constructor) VLIB_CLI_COMMAND (debug_lacp_command)
#define VLIB_CLI_COMMAND(x,...)
static clib_error_t * show_lacp_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
void vlib_cli_output(vlib_main_t *vm, char *fmt,...)
static u8 * format_mux_sm_state(u8 *s, va_list *args)
u8 bond_interface_name[64]
u64 marker_bad_pdu_received
#define vec_free(V)
Free vector's memory (no header).
static int lacp_bit_test(u8 val, u8 bit)
format_function_t format_vnet_sw_if_index_name
unformat_function_t unformat_vnet_sw_interface
clib_error_t * lacp_cli_init(vlib_main_t *vm)
#define VLIB_INIT_FUNCTION(x)
LACP interface details struct.
static member_if_t * bond_get_member_by_sw_if_index(u32 sw_if_index)
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
clib_error_t *() vlib_init_function_t(struct vlib_main_t *vm)
lacp_state_struct lacp_state_array[]
f64 last_marker_pdu_sent_time
u16 actor_system_priority
static f64 vlib_time_now(vlib_main_t *vm)
vl_api_interface_index_t sw_if_index
u32 sw_if_indices[VLIB_FRAME_SIZE]