63 {lacp_ptx_state_no_periodic},
64 {lacp_ptx_state_fast_periodic},
65 {lacp_ptx_state_slow_periodic},
66 {lacp_ptx_state_periodic_tx},
104 if (timer_expired || (sif->
partner.state & LACP_STATE_LACP_TIMEOUT))
106 LACP_PTX_EVENT_TIMER_EXPIRED, &sif->
ptx_state);
129 LACP_PTX_EVENT_TIMER_EXPIRED, &sif->
ptx_state);
131 if (!(sif->
partner.state & LACP_STATE_LACP_TIMEOUT))
133 LACP_PTX_EVENT_LONG_TIMEOUT, &sif->
ptx_state);
147 if (sif->
partner.state & LACP_STATE_LACP_TIMEOUT)
149 LACP_PTX_EVENT_SHORT_TIMEOUT, &sif->
ptx_state);
152 LACP_PTX_EVENT_LONG_TIMEOUT, &sif->
ptx_state);
161 #define _(b, s, n) {.bit = b, .str = #s, }, 166 int e = va_arg (*args,
int);
170 if (e >= (
sizeof (lacp_ptx_event_array) /
sizeof (*event_entry)))
171 s =
format (s,
"Bad event %d", e);
173 s =
format (s,
"%s", event_entry[e].str);
182 clib_warning (
"%U-PTX: event %U, old state %U, new state %U",
static u8 * format_ptx_event(u8 *s, va_list *args)
vnet_main_t * vnet_get_main(void)
int lacp_ptx_action_no_periodic(void *p1, void *p2)
int lacp_ptx_action_fast_periodic(void *p1, void *p2)
#define LACP_FAST_PERIODIC_TIMER
format_function_t format_vnet_sw_if_index_name
static u8 lacp_timer_is_running(f64 timer)
#define LACP_ACTION_SLOW_PERIODIC
static u8 lacp_timer_is_expired(vlib_main_t *vm, f64 timer)
void lacp_init_ptx_machine(vlib_main_t *vm, slave_if_t *sif)
#define LACP_ACTION_TIMER_EXPIRED
static void lacp_stop_timer(f64 *timer)
static lacp_fsm_machine_t lacp_ptx_fsm_table[]
#define clib_warning(format, args...)
vhost_vring_state_t state
int lacp_ptx_action_slow_periodic(void *p1, void *p2)
static u8 * format_ptx_sm_state(u8 *s, va_list *args)
void lacp_ptx_debug_func(slave_if_t *sif, int event, int state, lacp_fsm_state_t *transition)
static void lacp_schedule_periodic_timer(vlib_main_t *vm, slave_if_t *sif)
int lacp_ptx_action_timer_expired(void *p1, void *p2)
static void lacp_start_periodic_timer(vlib_main_t *vm, slave_if_t *sif, u8 expiration)
#define LACP_ACTION_NO_PERIODIC
lacp_machine_t lacp_tx_machine
#define LACP_ACTION_FAST_PERIODIC
int lacp_machine_dispatch(lacp_machine_t *machine, vlib_main_t *vm, slave_if_t *sif, int event, int *state)