summaryrefslogtreecommitdiffstats
path: root/src/plugins/lacp/protocol.h
diff options
context:
space:
mode:
authorSteven Luong <sluong@cisco.com>2019-10-25 09:52:19 -0700
committerAndrew Yourtchenko <ayourtch@gmail.com>2020-02-06 12:18:06 +0000
commit8427de5ab1a93495d2d33e9ab259c9dfc489ffee (patch)
tree87a866d1ef32130002258c6232cd2f2ace14a821 /src/plugins/lacp/protocol.h
parentdfad26986077ff26b471c008a0fd77a79f767a3c (diff)
lacp: add actor steady state check prior to skip processing lacp pdu
In a rare event, we may be skipping processing lacp pdu's when the it is not in steady state. Type: fix Signed-off-by: Steven Luong <sluong@cisco.com> Change-Id: I4e4f81dfd4e95433879ee66cdf6edb8d8afbe9b0
Diffstat (limited to 'src/plugins/lacp/protocol.h')
-rw-r--r--src/plugins/lacp/protocol.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/lacp/protocol.h b/src/plugins/lacp/protocol.h
index 9fc2f35fd38..347e944f95e 100644
--- a/src/plugins/lacp/protocol.h
+++ b/src/plugins/lacp/protocol.h
@@ -61,6 +61,10 @@ typedef enum
_(6, DEFAULTED, "defaulted") \
_(7, EXPIRED, "expired")
+#define LACP_STEADY_STATE (LACP_STATE_SYNCHRONIZATION | \
+ LACP_STATE_COLLECTING | \
+ LACP_STATE_DISTRIBUTING)
+
typedef enum
{
#define _(a, b, c) LACP_STATE_##b = (1 << a),