FD.io VPP  v21.06-3-gbb25fbf28
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, member_if_t *mif)
 
static void lacp_update_default_selected (vlib_main_t *vm, member_if_t *mif)
 
static void lacp_record_default (member_if_t *mif)
 
static void lacp_update_selected (vlib_main_t *vm, member_if_t *mif)
 
static void lacp_update_ntt (vlib_main_t *vm, member_if_t *mif)
 
static u8 lacp_compare_partner (member_if_t *mif)
 
static void lacp_record_pdu (vlib_main_t *vm, member_if_t *mif)
 
static void lacp_set_port_moved (vlib_main_t *vm, member_if_t *mif, 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, member_if_t *mif)
 
int lacp_rx_action_current (void *p1, void *p2)
 
static u8format_rx_event (u8 *s, va_list *args)
 
void lacp_rx_debug_func (member_if_t *mif, int event, int state, lacp_fsm_state_t *transition)
 
void lacp_init_rx_machine (vlib_main_t *vm, member_if_t *mif)
 

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 379 of file rx_machine.c.

+ Here is the caller graph for this function:

◆ lacp_compare_partner()

static u8 lacp_compare_partner ( member_if_t mif)
static

Definition at line 193 of file rx_machine.c.

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

◆ lacp_init_rx_machine()

void lacp_init_rx_machine ( vlib_main_t vm,
member_if_t mif 
)

Definition at line 424 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,
member_if_t mif 
)
static

Definition at line 340 of file rx_machine.c.

+ Here is the caller graph for this function:

◆ lacp_record_default()

static void lacp_record_default ( member_if_t mif)
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,
member_if_t mif 
)
static

Definition at line 208 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 362 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 323 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 282 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 240 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 309 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 257 of file rx_machine.c.

+ Here is the call graph for this function:

◆ lacp_rx_debug_func()

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

Definition at line 399 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,
member_if_t mif,
u8  val 
)
static

Definition at line 227 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,
member_if_t mif 
)
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,
member_if_t mif 
)
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,
member_if_t mif 
)
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,
member_if_t mif 
)
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_rx_machine

lacp_machine_t lacp_rx_machine
Initial value:

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},
}

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},
}

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},
}

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},
}

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},
}

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},
}

Definition at line 37 of file rx_machine.c.

lacp_rx_state_current
static lacp_fsm_state_t lacp_rx_state_current[]
Definition: rx_machine.c:89
lacp_rx_debug_func
void lacp_rx_debug_func(member_if_t *mif, int event, int state, lacp_fsm_state_t *transition)
Definition: rx_machine.c:399
LACP_ACTION_INITIALIZE
#define LACP_ACTION_INITIALIZE
Definition: rx_machine.h:65
lacp_rx_state_defaulted
static lacp_fsm_state_t lacp_rx_state_defaulted[]
Definition: rx_machine.c:76
lacp_rx_state_initialize
static lacp_fsm_state_t lacp_rx_state_initialize[]
Definition: rx_machine.c:24
LACP_ACTION_LACP_DISABLED
#define LACP_ACTION_LACP_DISABLED
Definition: rx_machine.h:71
LACP_ACTION_EXPIRED
#define LACP_ACTION_EXPIRED
Definition: rx_machine.h:69
lacp_rx_state_lacp_disabled
static lacp_fsm_state_t lacp_rx_state_lacp_disabled[]
Definition: rx_machine.c:63
lacp_rx_state_port_disabled
static lacp_fsm_state_t lacp_rx_state_port_disabled[]
Definition: rx_machine.c:37
lacp_rx_state_expired
static lacp_fsm_state_t lacp_rx_state_expired[]
Definition: rx_machine.c:50
LACP_ACTION_CURRENT
#define LACP_ACTION_CURRENT
Definition: rx_machine.h:74
LACP_ACTION_DEFAULTED
#define LACP_ACTION_DEFAULTED
Definition: rx_machine.h:73
lacp_rx_fsm_table
static lacp_fsm_machine_t lacp_rx_fsm_table[]
Definition: rx_machine.c:99
LACP_ACTION_PORT_DISABLED
#define LACP_ACTION_PORT_DISABLED
Definition: rx_machine.h:67
LACP_NOACTION
#define LACP_NOACTION
Definition: machine.h:21