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

Go to the source code of this file.

Functions

static void lacp_detach_mux_from_aggregator (vlib_main_t *vm, member_if_t *mif)
 
static void lacp_attach_mux_to_aggregator (vlib_main_t *vm, member_if_t *mif)
 
int lacp_mux_action_detached (void *p1, void *p2)
 
int lacp_mux_action_attached (void *p1, void *p2)
 
int lacp_mux_action_waiting (void *p1, void *p2)
 
int lacp_mux_action_collecting_distributing (void *p1, void *p2)
 
static u8format_mux_event (u8 *s, va_list *args)
 
void lacp_mux_debug_func (member_if_t *mif, int event, int state, lacp_fsm_state_t *transition)
 
void lacp_init_mux_machine (vlib_main_t *vm, member_if_t *mif)
 

Variables

static lacp_fsm_state_t lacp_mux_state_detached []
 
static lacp_fsm_state_t lacp_mux_state_waiting []
 
static lacp_fsm_state_t lacp_mux_state_attached []
 
static lacp_fsm_state_t lacp_mux_state_collecting_distributing []
 
static lacp_fsm_machine_t lacp_mux_fsm_table []
 
lacp_machine_t lacp_mux_machine
 

Function Documentation

◆ format_mux_event()

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

Definition at line 187 of file mux_machine.c.

+ Here is the caller graph for this function:

◆ lacp_attach_mux_to_aggregator()

static void lacp_attach_mux_to_aggregator ( vlib_main_t vm,
member_if_t mif 
)
static

Definition at line 91 of file mux_machine.c.

+ Here is the caller graph for this function:

◆ lacp_detach_mux_from_aggregator()

static void lacp_detach_mux_from_aggregator ( vlib_main_t vm,
member_if_t mif 
)
static

Definition at line 83 of file mux_machine.c.

+ Here is the caller graph for this function:

◆ lacp_init_mux_machine()

void lacp_init_mux_machine ( vlib_main_t vm,
member_if_t mif 
)

Definition at line 233 of file mux_machine.c.

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

◆ lacp_mux_action_attached()

int lacp_mux_action_attached ( void *  p1,
void *  p2 
)

Definition at line 121 of file mux_machine.c.

+ Here is the call graph for this function:

◆ lacp_mux_action_collecting_distributing()

int lacp_mux_action_collecting_distributing ( void *  p1,
void *  p2 
)

Definition at line 166 of file mux_machine.c.

+ Here is the call graph for this function:

◆ lacp_mux_action_detached()

int lacp_mux_action_detached ( void *  p1,
void *  p2 
)

Definition at line 97 of file mux_machine.c.

+ Here is the call graph for this function:

◆ lacp_mux_action_waiting()

int lacp_mux_action_waiting ( void *  p1,
void *  p2 
)

Definition at line 146 of file mux_machine.c.

+ Here is the call graph for this function:

◆ lacp_mux_debug_func()

void lacp_mux_debug_func ( member_if_t mif,
int  event,
int  state,
lacp_fsm_state_t transition 
)

Definition at line 207 of file mux_machine.c.

+ Here is the call graph for this function:

Variable Documentation

◆ lacp_mux_fsm_table

lacp_fsm_machine_t lacp_mux_fsm_table[]
static

◆ lacp_mux_machine

lacp_machine_t lacp_mux_machine
Initial value:

Definition at line 77 of file mux_machine.c.

◆ lacp_mux_state_attached

lacp_fsm_state_t lacp_mux_state_attached[]
static
Initial value:
= {
{LACP_ACTION_DETACHED, LACP_MUX_STATE_DETACHED},
{LACP_ACTION_ATTACHED, LACP_MUX_STATE_ATTACHED},
{LACP_ACTION_DETACHED, LACP_MUX_STATE_DETACHED},
{LACP_ACTION_DETACHED, LACP_MUX_STATE_DETACHED},
{LACP_ACTION_ATTACHED, LACP_MUX_STATE_ATTACHED},
{LACP_ACTION_COLLECTING_DISTRIBUTING, LACP_MUX_STATE_COLLECTING_DISTRIBUTING},
}

Definition at line 49 of file mux_machine.c.

◆ lacp_mux_state_collecting_distributing

lacp_fsm_state_t lacp_mux_state_collecting_distributing[]
static
Initial value:
= {
{LACP_ACTION_DETACHED, LACP_MUX_STATE_DETACHED},
{LACP_ACTION_COLLECTING_DISTRIBUTING, LACP_MUX_STATE_COLLECTING_DISTRIBUTING},
{LACP_ACTION_COLLECTING_DISTRIBUTING, LACP_MUX_STATE_COLLECTING_DISTRIBUTING},
{LACP_ACTION_ATTACHED, LACP_MUX_STATE_ATTACHED},
{LACP_ACTION_COLLECTING_DISTRIBUTING, LACP_MUX_STATE_COLLECTING_DISTRIBUTING},
{LACP_ACTION_COLLECTING_DISTRIBUTING, LACP_MUX_STATE_COLLECTING_DISTRIBUTING},
}

Definition at line 61 of file mux_machine.c.

◆ lacp_mux_state_detached

lacp_fsm_state_t lacp_mux_state_detached[]
static
Initial value:
= {
{LACP_ACTION_DETACHED, LACP_MUX_STATE_DETACHED},
{LACP_ACTION_WAITING, LACP_MUX_STATE_WAITING},
{LACP_ACTION_WAITING, LACP_MUX_STATE_WAITING},
{LACP_ACTION_DETACHED, LACP_MUX_STATE_DETACHED},
{LACP_ACTION_DETACHED, LACP_MUX_STATE_DETACHED},
{LACP_ACTION_DETACHED, LACP_MUX_STATE_DETACHED},
}

Definition at line 25 of file mux_machine.c.

◆ lacp_mux_state_waiting

lacp_fsm_state_t lacp_mux_state_waiting[]
static
Initial value:
= {
{LACP_ACTION_DETACHED, LACP_MUX_STATE_DETACHED},
{LACP_ACTION_WAITING, LACP_MUX_STATE_WAITING},
{LACP_ACTION_WAITING, LACP_MUX_STATE_WAITING},
{LACP_ACTION_DETACHED, LACP_MUX_STATE_DETACHED},
{LACP_ACTION_ATTACHED, LACP_MUX_STATE_ATTACHED},
{LACP_ACTION_WAITING, LACP_MUX_STATE_WAITING},
}

Definition at line 37 of file mux_machine.c.

LACP_ACTION_DETACHED
#define LACP_ACTION_DETACHED
Definition: mux_machine.h:59
lacp_mux_fsm_table
static lacp_fsm_machine_t lacp_mux_fsm_table[]
Definition: mux_machine.c:70
LACP_ACTION_WAITING
#define LACP_ACTION_WAITING
Definition: mux_machine.h:61
LACP_ACTION_COLLECTING_DISTRIBUTING
#define LACP_ACTION_COLLECTING_DISTRIBUTING
Definition: mux_machine.h:62
LACP_ACTION_ATTACHED
#define LACP_ACTION_ATTACHED
Definition: mux_machine.h:60
lacp_mux_debug_func
void lacp_mux_debug_func(member_if_t *mif, int event, int state, lacp_fsm_state_t *transition)
Definition: mux_machine.c:207
lacp_mux_state_collecting_distributing
static lacp_fsm_state_t lacp_mux_state_collecting_distributing[]
Definition: mux_machine.c:61
lacp_mux_state_attached
static lacp_fsm_state_t lacp_mux_state_attached[]
Definition: mux_machine.c:49
lacp_mux_state_waiting
static lacp_fsm_state_t lacp_mux_state_waiting[]
Definition: mux_machine.c:37
lacp_mux_state_detached
static lacp_fsm_state_t lacp_mux_state_detached[]
Definition: mux_machine.c:25