FD.io VPP  v19.04.4-rc0-5-ge88582fac
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, slave_if_t *sif)
 
static void lacp_attach_mux_to_aggregator (vlib_main_t *vm, slave_if_t *sif)
 
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 (slave_if_t *sif, int event, int state, lacp_fsm_state_t *transition)
 
void lacp_init_mux_machine (vlib_main_t *vm, slave_if_t *sif)
 

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 192 of file mux_machine.c.

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

◆ lacp_attach_mux_to_aggregator()

static void lacp_attach_mux_to_aggregator ( vlib_main_t vm,
slave_if_t sif 
)
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,
slave_if_t sif 
)
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,
slave_if_t sif 
)

Definition at line 224 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 122 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 170 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 148 of file mux_machine.c.

+ Here is the call graph for this function:

◆ lacp_mux_debug_func()

void lacp_mux_debug_func ( slave_if_t sif,
int  event,
int  state,
lacp_fsm_state_t transition 
)

Definition at line 213 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
Initial value:
= {
}
static lacp_fsm_state_t lacp_mux_state_detached[]
Definition: mux_machine.c:25
static lacp_fsm_state_t lacp_mux_state_attached[]
Definition: mux_machine.c:49
static lacp_fsm_state_t lacp_mux_state_collecting_distributing[]
Definition: mux_machine.c:61
static lacp_fsm_state_t lacp_mux_state_waiting[]
Definition: mux_machine.c:37

Definition at line 70 of file mux_machine.c.

◆ lacp_mux_machine

lacp_machine_t lacp_mux_machine
Initial value:
= {
}
void lacp_mux_debug_func(slave_if_t *sif, int event, int state, lacp_fsm_state_t *transition)
Definition: mux_machine.c:213
static lacp_fsm_machine_t lacp_mux_fsm_table[]
Definition: mux_machine.c:70

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},
}
#define LACP_ACTION_COLLECTING_DISTRIBUTING
Definition: mux_machine.h:62
#define LACP_ACTION_DETACHED
Definition: mux_machine.h:59
#define LACP_ACTION_ATTACHED
Definition: mux_machine.h:60

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},
}
#define LACP_ACTION_COLLECTING_DISTRIBUTING
Definition: mux_machine.h:62
#define LACP_ACTION_DETACHED
Definition: mux_machine.h:59
#define LACP_ACTION_ATTACHED
Definition: mux_machine.h:60

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},
}
#define LACP_ACTION_DETACHED
Definition: mux_machine.h:59
#define LACP_ACTION_WAITING
Definition: mux_machine.h:61

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},
}
#define LACP_ACTION_DETACHED
Definition: mux_machine.h:59
#define LACP_ACTION_ATTACHED
Definition: mux_machine.h:60
#define LACP_ACTION_WAITING
Definition: mux_machine.h:61

Definition at line 37 of file mux_machine.c.