FD.io VPP  v18.07.1-19-g511ce25
Vector Packet Processing
rx_machine.c File Reference
+ Include dependency graph for rx_machine.c:

Go to the source code of this file.

Functions

static void lacp_set_port_unselected (vlib_main_t *vm, slave_if_t *sif)
 
static void lacp_update_default_selected (vlib_main_t *vm, slave_if_t *sif)
 
static void lacp_record_default (slave_if_t *sif)
 
static void lacp_update_selected (vlib_main_t *vm, slave_if_t *sif)
 
static void lacp_update_ntt (vlib_main_t *vm, slave_if_t *sif)
 
static u8 lacp_compare_partner (slave_if_t *sif)
 
static void lacp_record_pdu (slave_if_t *sif)
 
static void lacp_set_port_moved (vlib_main_t *vm, slave_if_t *sif, u8 val)
 
int lacp_rx_action_initialize (void *p1, void *p2)
 
int lacp_rx_action_port_disabled (void *p1, void *p2)
 
int lacp_rx_action_expired (void *p1, void *p2)
 
int lacp_rx_action_lacp_disabled (void *p1, void *p2)
 
int lacp_rx_action_defaulted (void *p1, void *p2)
 
static int lacp_port_is_moved (vlib_main_t *vm, slave_if_t *sif)
 
int lacp_rx_action_current (void *p1, void *p2)
 
static u8format_rx_event (u8 *s, va_list *args)
 
void lacp_rx_debug_func (slave_if_t *sif, int event, int state, lacp_fsm_state_t *transition)
 
void lacp_init_rx_machine (vlib_main_t *vm, slave_if_t *sif)
 

Variables

static lacp_fsm_state_t lacp_rx_state_initialize []
 
static lacp_fsm_state_t lacp_rx_state_port_disabled []
 
static lacp_fsm_state_t lacp_rx_state_expired []
 
static lacp_fsm_state_t lacp_rx_state_lacp_disabled []
 
static lacp_fsm_state_t lacp_rx_state_defaulted []
 
static lacp_fsm_state_t lacp_rx_state_current []
 
static lacp_fsm_machine_t lacp_rx_fsm_table []
 
lacp_machine_t lacp_rx_machine
 

Function Documentation

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

Definition at line 379 of file rx_machine.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u8 lacp_compare_partner ( slave_if_t sif)
static

Definition at line 194 of file rx_machine.c.

+ Here is the caller graph for this function:

void lacp_init_rx_machine ( vlib_main_t vm,
slave_if_t sif 
)

Definition at line 411 of file rx_machine.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int lacp_port_is_moved ( vlib_main_t vm,
slave_if_t sif 
)
static

Definition at line 338 of file rx_machine.c.

+ Here is the caller graph for this function:

static void lacp_record_default ( slave_if_t sif)
static

Definition at line 151 of file rx_machine.c.

+ Here is the caller graph for this function:

static void lacp_record_pdu ( slave_if_t sif)
static

Definition at line 209 of file rx_machine.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int lacp_rx_action_current ( void *  p1,
void *  p2 
)

Definition at line 360 of file rx_machine.c.

+ Here is the call graph for this function:

int lacp_rx_action_defaulted ( void *  p1,
void *  p2 
)

Definition at line 322 of file rx_machine.c.

+ Here is the call graph for this function:

int lacp_rx_action_expired ( void *  p1,
void *  p2 
)

Definition at line 279 of file rx_machine.c.

+ Here is the call graph for this function:

int lacp_rx_action_initialize ( void *  p1,
void *  p2 
)

Definition at line 237 of file rx_machine.c.

+ Here is the call graph for this function:

int lacp_rx_action_lacp_disabled ( void *  p1,
void *  p2 
)

Definition at line 308 of file rx_machine.c.

+ Here is the call graph for this function:

int lacp_rx_action_port_disabled ( void *  p1,
void *  p2 
)

Definition at line 254 of file rx_machine.c.

+ Here is the call graph for this function:

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

Definition at line 400 of file rx_machine.c.

+ Here is the call graph for this function:

static void lacp_set_port_moved ( vlib_main_t vm,
slave_if_t sif,
u8  val 
)
static

Definition at line 224 of file rx_machine.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void lacp_set_port_unselected ( vlib_main_t vm,
slave_if_t sif 
)
static

Definition at line 114 of file rx_machine.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void lacp_update_default_selected ( vlib_main_t vm,
slave_if_t sif 
)
static

Definition at line 139 of file rx_machine.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void lacp_update_ntt ( vlib_main_t vm,
slave_if_t sif 
)
static

Definition at line 172 of file rx_machine.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void lacp_update_selected ( vlib_main_t vm,
slave_if_t sif 
)
static

Definition at line 158 of file rx_machine.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

lacp_fsm_machine_t lacp_rx_fsm_table[]
static
Initial value:
= {
}
static lacp_fsm_state_t lacp_rx_state_defaulted[]
Definition: rx_machine.c:76
static lacp_fsm_state_t lacp_rx_state_initialize[]
Definition: rx_machine.c:24
static lacp_fsm_state_t lacp_rx_state_current[]
Definition: rx_machine.c:89
static lacp_fsm_state_t lacp_rx_state_lacp_disabled[]
Definition: rx_machine.c:63
static lacp_fsm_state_t lacp_rx_state_expired[]
Definition: rx_machine.c:50
static lacp_fsm_state_t lacp_rx_state_port_disabled[]
Definition: rx_machine.c:37

Definition at line 99 of file rx_machine.c.

lacp_machine_t lacp_rx_machine
Initial value:
= {
}
static lacp_fsm_machine_t lacp_rx_fsm_table[]
Definition: rx_machine.c:99
void lacp_rx_debug_func(slave_if_t *sif, int event, int state, lacp_fsm_state_t *transition)
Definition: rx_machine.c:400

Definition at line 108 of file rx_machine.c.

lacp_fsm_state_t lacp_rx_state_current[]
static
Initial value:
= {
{LACP_ACTION_INITIALIZE, LACP_RX_STATE_INITIALIZE},
{LACP_NOACTION, LACP_RX_STATE_CURRENT},
{LACP_NOACTION, LACP_RX_STATE_CURRENT},
{LACP_NOACTION, LACP_RX_STATE_CURRENT},
{LACP_ACTION_LACP_DISABLED, LACP_RX_STATE_LACP_DISABLED},
{LACP_ACTION_CURRENT, LACP_RX_STATE_CURRENT},
{LACP_ACTION_EXPIRED, LACP_RX_STATE_EXPIRED},
}
#define LACP_ACTION_LACP_DISABLED
Definition: rx_machine.h:71
#define LACP_ACTION_EXPIRED
Definition: rx_machine.h:69
#define LACP_NOACTION
Definition: machine.h:21
#define LACP_ACTION_INITIALIZE
Definition: rx_machine.h:65
#define LACP_ACTION_CURRENT
Definition: rx_machine.h:74

Definition at line 89 of file rx_machine.c.

lacp_fsm_state_t lacp_rx_state_defaulted[]
static
Initial value:
= {
{LACP_ACTION_INITIALIZE, LACP_RX_STATE_INITIALIZE},
{LACP_NOACTION, LACP_RX_STATE_DEFAULTED},
{LACP_NOACTION, LACP_RX_STATE_DEFAULTED},
{LACP_NOACTION, LACP_RX_STATE_DEFAULTED},
{LACP_ACTION_LACP_DISABLED, LACP_RX_STATE_LACP_DISABLED},
{LACP_ACTION_CURRENT, LACP_RX_STATE_CURRENT},
{LACP_ACTION_DEFAULTED, LACP_RX_STATE_DEFAULTED},
}
#define LACP_ACTION_LACP_DISABLED
Definition: rx_machine.h:71
#define LACP_NOACTION
Definition: machine.h:21
#define LACP_ACTION_INITIALIZE
Definition: rx_machine.h:65
#define LACP_ACTION_CURRENT
Definition: rx_machine.h:74
#define LACP_ACTION_DEFAULTED
Definition: rx_machine.h:73

Definition at line 76 of file rx_machine.c.

lacp_fsm_state_t lacp_rx_state_expired[]
static
Initial value:
= {
{LACP_ACTION_INITIALIZE, LACP_RX_STATE_INITIALIZE},
{LACP_NOACTION, LACP_RX_STATE_EXPIRED},
{LACP_NOACTION, LACP_RX_STATE_EXPIRED},
{LACP_NOACTION, LACP_RX_STATE_EXPIRED},
{LACP_NOACTION, LACP_RX_STATE_EXPIRED},
{LACP_ACTION_CURRENT, LACP_RX_STATE_CURRENT},
{LACP_ACTION_DEFAULTED, LACP_RX_STATE_DEFAULTED},
}
#define LACP_NOACTION
Definition: machine.h:21
#define LACP_ACTION_INITIALIZE
Definition: rx_machine.h:65
#define LACP_ACTION_CURRENT
Definition: rx_machine.h:74
#define LACP_ACTION_DEFAULTED
Definition: rx_machine.h:73

Definition at line 50 of file rx_machine.c.

lacp_fsm_state_t lacp_rx_state_initialize[]
static
Initial value:
= {
{LACP_ACTION_INITIALIZE, LACP_RX_STATE_PORT_DISABLED},
{LACP_ACTION_INITIALIZE, LACP_RX_STATE_PORT_DISABLED},
{LACP_ACTION_INITIALIZE, LACP_RX_STATE_PORT_DISABLED},
{LACP_NOACTION, LACP_RX_STATE_INITIALIZE},
{LACP_NOACTION, LACP_RX_STATE_INITIALIZE},
{LACP_NOACTION, LACP_RX_STATE_INITIALIZE},
{LACP_NOACTION, LACP_RX_STATE_INITIALIZE},
}
#define LACP_NOACTION
Definition: machine.h:21
#define LACP_ACTION_INITIALIZE
Definition: rx_machine.h:65

Definition at line 24 of file rx_machine.c.

lacp_fsm_state_t lacp_rx_state_lacp_disabled[]
static
Initial value:
= {
{LACP_ACTION_INITIALIZE, LACP_RX_STATE_INITIALIZE},
{LACP_NOACTION, LACP_RX_STATE_LACP_DISABLED},
{LACP_NOACTION, LACP_RX_STATE_LACP_DISABLED},
{LACP_ACTION_EXPIRED, LACP_RX_STATE_EXPIRED},
{LACP_ACTION_LACP_DISABLED, LACP_RX_STATE_LACP_DISABLED},
{LACP_NOACTION, LACP_RX_STATE_LACP_DISABLED},
{LACP_NOACTION, LACP_RX_STATE_LACP_DISABLED},
}
#define LACP_ACTION_LACP_DISABLED
Definition: rx_machine.h:71
#define LACP_ACTION_EXPIRED
Definition: rx_machine.h:69
#define LACP_NOACTION
Definition: machine.h:21
#define LACP_ACTION_INITIALIZE
Definition: rx_machine.h:65

Definition at line 63 of file rx_machine.c.

lacp_fsm_state_t lacp_rx_state_port_disabled[]
static
Initial value:
= {
{LACP_ACTION_PORT_DISABLED, LACP_RX_STATE_PORT_DISABLED},
{LACP_ACTION_PORT_DISABLED, LACP_RX_STATE_PORT_DISABLED},
{LACP_ACTION_INITIALIZE, LACP_RX_STATE_INITIALIZE},
{LACP_ACTION_EXPIRED, LACP_RX_STATE_EXPIRED},
{LACP_ACTION_LACP_DISABLED, LACP_RX_STATE_LACP_DISABLED},
{LACP_NOACTION, LACP_RX_STATE_PORT_DISABLED},
{LACP_NOACTION, LACP_RX_STATE_PORT_DISABLED},
}
#define LACP_ACTION_LACP_DISABLED
Definition: rx_machine.h:71
#define LACP_ACTION_EXPIRED
Definition: rx_machine.h:69
#define LACP_NOACTION
Definition: machine.h:21
#define LACP_ACTION_INITIALIZE
Definition: rx_machine.h:65
#define LACP_ACTION_PORT_DISABLED
Definition: rx_machine.h:67

Definition at line 37 of file rx_machine.c.