MARKER_N_PACKET_TEMPLATES,
} marker_packet_template_id_t;
-enum
+typedef enum
{
LACP_PROCESS_EVENT_START = 1,
LACP_PROCESS_EVENT_STOP = 2,
LACP_N_ERROR,
} lacp_error_t;
+#define SECS_IN_A_DAY 86400.0
+
/* lacp packet trace capture */
typedef struct
{
+ u32 sw_if_index;
u32 len;
union
{
vlib_packet_template_t marker_packet_templates[MARKER_N_PACKET_TEMPLATES];
/* LACP interface count */
- u32 lacp_int;
+ volatile u32 lacp_int;
/* debug is on or off */
u8 debug;
extern lacp_state_struct lacp_state_array[];
extern lacp_main_t lacp_main;
+void lacp_create_periodic_process (void);
clib_error_t *lacp_plugin_api_hookup (vlib_main_t * vm);
int lacp_dump_ifs (lacp_interface_details_t ** out_bondids);
lacp_error_t lacp_input (vlib_main_t * vm, vlib_buffer_t * b0, u32 bi0);
{.str = NULL}
};
int state = va_arg (*args, int);
- lacp_state_struct *state_entry =
- (lacp_state_struct *) & lacp_rx_sm_state_array;
+ lacp_state_struct *state_entry = lacp_rx_sm_state_array;
if (state >= (sizeof (lacp_rx_sm_state_array) / sizeof (*state_entry)))
s = format (s, "Bad state %d", state);
{.str = NULL}
};
int state = va_arg (*args, int);
- lacp_state_struct *state_entry =
- (lacp_state_struct *) & lacp_tx_sm_state_array;
+ lacp_state_struct *state_entry = lacp_tx_sm_state_array;
if (state >= (sizeof (lacp_tx_sm_state_array) / sizeof (*state_entry)))
s = format (s, "Bad state %d", state);
{.str = NULL}
};
int state = va_arg (*args, int);
- lacp_state_struct *state_entry =
- (lacp_state_struct *) & lacp_mux_sm_state_array;
+ lacp_state_struct *state_entry = lacp_mux_sm_state_array;
if (state >= (sizeof (lacp_mux_sm_state_array) / sizeof (*state_entry)))
s = format (s, "Bad state %d", state);
{.str = NULL}
};
int state = va_arg (*args, int);
- lacp_state_struct *state_entry =
- (lacp_state_struct *) & lacp_ptx_sm_state_array;
+ lacp_state_struct *state_entry = lacp_ptx_sm_state_array;
if (state >= (sizeof (lacp_ptx_sm_state_array) / sizeof (*state_entry)))
s = format (s, "Bad state %d", state);