FD.io VPP  v19.04.4-rc0-5-ge88582fac
Vector Packet Processing
ptx_machine.h File Reference
+ Include dependency graph for ptx_machine.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define foreach_lacp_ptx_event
 
#define foreach_lacp_ptx_sm_state
 
#define LACP_ACTION_NO_PERIODIC   LACP_ACTION_ROUTINE(lacp_ptx_action_no_periodic)
 
#define LACP_ACTION_SLOW_PERIODIC   LACP_ACTION_ROUTINE(lacp_ptx_action_slow_periodic)
 
#define LACP_ACTION_FAST_PERIODIC   LACP_ACTION_ROUTINE(lacp_ptx_action_fast_periodic)
 
#define LACP_ACTION_TIMER_EXPIRED   LACP_ACTION_ROUTINE(lacp_ptx_action_timer_expired)
 

Enumerations

enum  lacp_ptx_event_t { foreach_lacp_ptx_event }
 
enum  lacp_ptx_sm_state_t { foreach_lacp_ptx_sm_state }
 

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)
 
void lacp_ptx_debug_func (slave_if_t *sif, int event, int state, lacp_fsm_state_t *transition)
 
static void lacp_start_periodic_timer (vlib_main_t *vm, slave_if_t *sif, u8 expiration)
 
static void lacp_schedule_periodic_timer (vlib_main_t *vm, slave_if_t *sif)
 
static void lacp_ptx_post_short_timeout_event (vlib_main_t *vm, slave_if_t *sif)
 

Variables

lacp_machine_t lacp_ptx_machine
 

Macro Definition Documentation

◆ foreach_lacp_ptx_event

#define foreach_lacp_ptx_event
Value:
_(0, NO_PERIODIC, "no periodic") \
_(1, LONG_TIMEOUT, "long tiemout") \
_(2, TIMER_EXPIRED, "timer expired") \
_(3, SHORT_TIMEOUT, "short timeout")

Definition at line 22 of file ptx_machine.h.

◆ foreach_lacp_ptx_sm_state

#define foreach_lacp_ptx_sm_state
Value:
_(0, NO_PERIODIC, "no periodic") \
_(1, FAST_PERIODIC, "fast periodic") \
_(2, SLOW_PERIODIC, "slow periodic") \
_(3, PERIODIC_TX, "periodic transmission")

Definition at line 35 of file ptx_machine.h.

◆ LACP_ACTION_FAST_PERIODIC

#define LACP_ACTION_FAST_PERIODIC   LACP_ACTION_ROUTINE(lacp_ptx_action_fast_periodic)

Definition at line 61 of file ptx_machine.h.

◆ LACP_ACTION_NO_PERIODIC

#define LACP_ACTION_NO_PERIODIC   LACP_ACTION_ROUTINE(lacp_ptx_action_no_periodic)

Definition at line 57 of file ptx_machine.h.

◆ LACP_ACTION_SLOW_PERIODIC

#define LACP_ACTION_SLOW_PERIODIC   LACP_ACTION_ROUTINE(lacp_ptx_action_slow_periodic)

Definition at line 59 of file ptx_machine.h.

◆ LACP_ACTION_TIMER_EXPIRED

#define LACP_ACTION_TIMER_EXPIRED   LACP_ACTION_ROUTINE(lacp_ptx_action_timer_expired)

Definition at line 63 of file ptx_machine.h.

Enumeration Type Documentation

◆ lacp_ptx_event_t

Enumerator
foreach_lacp_ptx_event 

Definition at line 28 of file ptx_machine.h.

◆ lacp_ptx_sm_state_t

Enumerator
foreach_lacp_ptx_sm_state 

Definition at line 41 of file ptx_machine.h.

Function Documentation

◆ lacp_ptx_action_fast_periodic()

int lacp_ptx_action_fast_periodic ( void *  p1,
void *  p2 
)

Definition at line 116 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 151 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 198 of file ptx_machine.c.

+ Here is the call graph for this function:

◆ lacp_ptx_post_short_timeout_event()

static void lacp_ptx_post_short_timeout_event ( vlib_main_t vm,
slave_if_t sif 
)
inlinestatic

Definition at line 90 of file ptx_machine.h.

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

◆ lacp_schedule_periodic_timer()

static void lacp_schedule_periodic_timer ( vlib_main_t vm,
slave_if_t sif 
)
inlinestatic

Definition at line 73 of file ptx_machine.h.

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

◆ lacp_start_periodic_timer()

static void lacp_start_periodic_timer ( vlib_main_t vm,
slave_if_t sif,
u8  expiration 
)
inlinestatic

Definition at line 67 of file ptx_machine.h.

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

Variable Documentation

◆ lacp_ptx_machine

lacp_machine_t lacp_ptx_machine

Definition at line 69 of file ptx_machine.c.