30 {lacp_tx_state_transmit},
67 #define _(b, s, n) {.bit = b, .str = #s, }, 72 int e = va_arg (*args,
int);
76 if (e >= (
sizeof (lacp_tx_event_array) /
sizeof (*event_entry)))
77 s =
format (s,
"Bad event %d", e);
79 s =
format (s,
"%s", event_entry[e].str);
88 clib_warning (
"%U-TX: event %U, old state %U, new state %U",
void lacp_send_lacp_pdu(vlib_main_t *vm, slave_if_t *sif)
vnet_main_t * vnet_get_main(void)
static f64 vlib_time_now(vlib_main_t *vm)
format_function_t format_vnet_sw_if_index_name
static lacp_fsm_machine_t lacp_tx_fsm_table[]
static u8 lacp_timer_is_running(f64 timer)
int lacp_tx_action_transmit(void *p1, void *p2)
#define LACP_ACTION_TRANSMIT
#define clib_warning(format, args...)
vhost_vring_state_t state
static void lacp_schedule_periodic_timer(vlib_main_t *vm, slave_if_t *sif)
void lacp_tx_debug_func(slave_if_t *sif, int event, int state, lacp_fsm_state_t *transition)
void lacp_init_tx_machine(vlib_main_t *vm, slave_if_t *sif)
static u8 * format_tx_sm_state(u8 *s, va_list *args)
static u8 * format_tx_event(u8 *s, va_list *args)
int lacp_machine_dispatch(lacp_machine_t *machine, vlib_main_t *vm, slave_if_t *sif, int event, int *state)