FD.io VPP  v18.04-17-g3a0d853
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

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:

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:

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:

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:

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:

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:

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:

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:

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_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_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_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_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_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_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.