aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lacp/node.h
diff options
context:
space:
mode:
authorSteven Luong <sluong@cisco.com>2019-06-05 10:52:35 -0700
committerDamjan Marion <dmarion@me.com>2019-06-07 11:21:28 +0000
commit4168c4d914c36f76c45cd8c6dde207b9f1c688e2 (patch)
treefc52a8e694168b67c1d7b8ff395addcac2266fb5 /src/plugins/lacp/node.h
parentf2922422d972644e67d1ca989e40cd0100ecb06d (diff)
lacp: create lacp-process on demand
Create lacp-process when the very first slave interface is added to the bond. Log an event message when lacp-process starts/stops. Be mindful when lacp-process is signalled to stop. Type: refactor Change-Id: I79e10e0a2a385a21a52ae5b8735f24631fdba293 Signed-off-by: Steven Luong <sluong@cisco.com>
Diffstat (limited to 'src/plugins/lacp/node.h')
-rw-r--r--src/plugins/lacp/node.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/lacp/node.h b/src/plugins/lacp/node.h
index ebc6704eb56..88bc5872390 100644
--- a/src/plugins/lacp/node.h
+++ b/src/plugins/lacp/node.h
@@ -74,6 +74,8 @@ typedef enum
LACP_N_ERROR,
} lacp_error_t;
+#define SECS_IN_A_DAY 86400.0
+
/* lacp packet trace capture */
typedef struct
{
@@ -129,7 +131,7 @@ typedef struct
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;
@@ -138,6 +140,7 @@ typedef struct
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);