FD.io VPP  v19.04.4-rc0-5-ge88582fac
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 (vlib_main_t *vm, 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

◆ format_rx_event()

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

Definition at line 383 of file rx_machine.c.

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

◆ lacp_compare_partner()

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:

◆ lacp_init_rx_machine()

void lacp_init_rx_machine ( vlib_main_t vm,
slave_if_t sif 
)

Definition at line 415 of file rx_machine.c.

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

◆ lacp_port_is_moved()

static int lacp_port_is_moved ( vlib_main_t vm,
slave_if_t sif 
)
static

Definition at line 342 of file rx_machine.c.

+ Here is the caller graph for this function:

◆ lacp_record_default()

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:

◆ lacp_record_pdu()

static void lacp_record_pdu ( vlib_main_t vm,
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:

◆ lacp_rx_action_current()

int lacp_rx_action_current ( void *  p1,
void *  p2 
)

Definition at line 364 of file rx_machine.c.

+ Here is the call graph for this function:

◆ lacp_rx_action_defaulted()

int lacp_rx_action_defaulted ( void *  p1,
void *  p2 
)

Definition at line 325 of file rx_machine.c.

+ Here is the call graph for this function:

◆ lacp_rx_action_expired()

int lacp_rx_action_expired ( void *  p1,
void *  p2 
)

Definition at line 283 of file rx_machine.c.

+ Here is the call graph for this function:

◆ lacp_rx_action_initialize()

int lacp_rx_action_initialize ( void *  p1,
void *  p2 
)

Definition at line 241 of file rx_machine.c.

+ Here is the call graph for this function:

◆ lacp_rx_action_lacp_disabled()

int lacp_rx_action_lacp_disabled ( void *  p1,
void *  p2 
)

Definition at line 311 of file rx_machine.c.

+ Here is the call graph for this function:

◆ lacp_rx_action_port_disabled()

int lacp_rx_action_port_disabled ( void *  p1,
void *  p2 
)

Definition at line 258 of file rx_machine.c.

+ Here is the call graph for this function:

◆ lacp_rx_debug_func()

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

Definition at line 404 of file rx_machine.c.

+ Here is the call graph for this function:

◆ lacp_set_port_moved()

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

Definition at line 228 of file rx_machine.c.

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

◆ lacp_set_port_unselected()

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:

◆ lacp_update_default_selected()

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:

◆ lacp_update_ntt()

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:

◆ lacp_update_selected()

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_rx_fsm_table

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_rx_machine

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:404

Definition at line 108 of file rx_machine.c.

◆ lacp_rx_state_current

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_rx_state_defaulted

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_rx_state_expired

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_rx_state_initialize

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_rx_state_lacp_disabled

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_rx_state_port_disabled

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.