FD.io VPP  v20.05.1-6-gf53edbc3b
Vector Packet Processing
ptx_machine.c File Reference
+ Include dependency graph for ptx_machine.c:

Go to the source code of this file.

Functions

int lacp_ptx_action_no_periodic (void *p1, void *p2)
 
int lacp_ptx_action_slow_periodic (void *p1, void *p2)
 
int lacp_ptx_action_fast_periodic (void *p1, void *p2)
 
int lacp_ptx_action_timer_expired (void *p1, void *p2)
 
static u8format_ptx_event (u8 *s, va_list *args)
 
void lacp_ptx_debug_func (slave_if_t *sif, int event, int state, lacp_fsm_state_t *transition)
 
void lacp_init_ptx_machine (vlib_main_t *vm, slave_if_t *sif)
 

Variables

static lacp_fsm_state_t lacp_ptx_state_no_periodic []
 
static lacp_fsm_state_t lacp_ptx_state_fast_periodic []
 
static lacp_fsm_state_t lacp_ptx_state_slow_periodic []
 
static lacp_fsm_state_t lacp_ptx_state_periodic_tx []
 
static lacp_fsm_machine_t lacp_ptx_fsm_table []
 
lacp_machine_t lacp_ptx_machine
 

Function Documentation

◆ format_ptx_event()

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

Definition at line 174 of file ptx_machine.c.

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

◆ lacp_init_ptx_machine()

void lacp_init_ptx_machine ( vlib_main_t vm,
slave_if_t sif 
)

Definition at line 220 of file ptx_machine.c.

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

◆ lacp_ptx_action_fast_periodic()

int lacp_ptx_action_fast_periodic ( void *  p1,
void *  p2 
)

Definition at line 115 of file ptx_machine.c.

+ Here is the call graph for this function:

◆ lacp_ptx_action_no_periodic()

int lacp_ptx_action_no_periodic ( void *  p1,
void *  p2 
)

Definition at line 75 of file ptx_machine.c.

+ Here is the call graph for this function:

◆ lacp_ptx_action_slow_periodic()

int lacp_ptx_action_slow_periodic ( void *  p1,
void *  p2 
)

Definition at line 86 of file ptx_machine.c.

+ Here is the call graph for this function:

◆ lacp_ptx_action_timer_expired()

int lacp_ptx_action_timer_expired ( void *  p1,
void *  p2 
)

Definition at line 148 of file ptx_machine.c.

+ Here is the call graph for this function:

◆ lacp_ptx_debug_func()

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

Definition at line 194 of file ptx_machine.c.

+ Here is the call graph for this function:

Variable Documentation

◆ lacp_ptx_fsm_table

lacp_fsm_machine_t lacp_ptx_fsm_table[]
static
Initial value:
= {
}
static lacp_fsm_state_t lacp_ptx_state_slow_periodic[]
Definition: ptx_machine.c:44
static lacp_fsm_state_t lacp_ptx_state_no_periodic[]
Definition: ptx_machine.c:24
static lacp_fsm_state_t lacp_ptx_state_periodic_tx[]
Definition: ptx_machine.c:54
static lacp_fsm_state_t lacp_ptx_state_fast_periodic[]
Definition: ptx_machine.c:34

Definition at line 62 of file ptx_machine.c.

◆ lacp_ptx_machine

lacp_machine_t lacp_ptx_machine
Initial value:
= {
}
static lacp_fsm_machine_t lacp_ptx_fsm_table[]
Definition: ptx_machine.c:62
void lacp_ptx_debug_func(slave_if_t *sif, int event, int state, lacp_fsm_state_t *transition)
Definition: ptx_machine.c:194

Definition at line 69 of file ptx_machine.c.

◆ lacp_ptx_state_fast_periodic

lacp_fsm_state_t lacp_ptx_state_fast_periodic[]
static
Initial value:
= {
{LACP_ACTION_NO_PERIODIC, LACP_PTX_STATE_NO_PERIODIC},
{LACP_ACTION_SLOW_PERIODIC, LACP_PTX_STATE_SLOW_PERIODIC},
{LACP_ACTION_TIMER_EXPIRED, LACP_PTX_STATE_PERIODIC_TX},
{LACP_ACTION_FAST_PERIODIC, LACP_PTX_STATE_FAST_PERIODIC},
}
#define LACP_ACTION_SLOW_PERIODIC
Definition: ptx_machine.h:59
#define LACP_ACTION_TIMER_EXPIRED
Definition: ptx_machine.h:63
#define LACP_ACTION_NO_PERIODIC
Definition: ptx_machine.h:57
#define LACP_ACTION_FAST_PERIODIC
Definition: ptx_machine.h:61

Definition at line 34 of file ptx_machine.c.

◆ lacp_ptx_state_no_periodic

lacp_fsm_state_t lacp_ptx_state_no_periodic[]
static
Initial value:
= {
{LACP_ACTION_NO_PERIODIC, LACP_PTX_STATE_NO_PERIODIC},
{LACP_ACTION_SLOW_PERIODIC, LACP_PTX_STATE_SLOW_PERIODIC},
{LACP_ACTION_NO_PERIODIC, LACP_PTX_STATE_NO_PERIODIC},
{LACP_ACTION_FAST_PERIODIC, LACP_PTX_STATE_FAST_PERIODIC},
}
#define LACP_ACTION_SLOW_PERIODIC
Definition: ptx_machine.h:59
#define LACP_ACTION_NO_PERIODIC
Definition: ptx_machine.h:57
#define LACP_ACTION_FAST_PERIODIC
Definition: ptx_machine.h:61

Definition at line 24 of file ptx_machine.c.

◆ lacp_ptx_state_periodic_tx

lacp_fsm_state_t lacp_ptx_state_periodic_tx[]
static
Initial value:
= {
{LACP_ACTION_NO_PERIODIC, LACP_PTX_STATE_NO_PERIODIC},
{LACP_NOACTION, LACP_PTX_STATE_PERIODIC_TX},
{LACP_ACTION_TIMER_EXPIRED, LACP_PTX_STATE_PERIODIC_TX},
{LACP_NOACTION, LACP_PTX_STATE_PERIODIC_TX},
}
#define LACP_NOACTION
Definition: machine.h:21
#define LACP_ACTION_TIMER_EXPIRED
Definition: ptx_machine.h:63
#define LACP_ACTION_NO_PERIODIC
Definition: ptx_machine.h:57

Definition at line 54 of file ptx_machine.c.

◆ lacp_ptx_state_slow_periodic

lacp_fsm_state_t lacp_ptx_state_slow_periodic[]
static
Initial value:
= {
{LACP_ACTION_NO_PERIODIC, LACP_PTX_STATE_NO_PERIODIC},
{LACP_ACTION_SLOW_PERIODIC, LACP_PTX_STATE_SLOW_PERIODIC},
{LACP_ACTION_TIMER_EXPIRED, LACP_PTX_STATE_PERIODIC_TX},
{LACP_ACTION_FAST_PERIODIC, LACP_PTX_STATE_FAST_PERIODIC},
}
#define LACP_ACTION_SLOW_PERIODIC
Definition: ptx_machine.h:59
#define LACP_ACTION_TIMER_EXPIRED
Definition: ptx_machine.h:63
#define LACP_ACTION_NO_PERIODIC
Definition: ptx_machine.h:57
#define LACP_ACTION_FAST_PERIODIC
Definition: ptx_machine.h:61

Definition at line 44 of file ptx_machine.c.