From 002723c45b042a270e0ab521b4b88da3d2d7ef55 Mon Sep 17 00:00:00 2001 From: Steven Luong Date: Tue, 22 Oct 2019 21:27:22 -0700 Subject: 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 Change-Id: I3595d22dbff8a97dce9fb4d4452d2051bcf6f523 --- src/plugins/lacp/protocol.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/plugins/lacp/protocol.h') 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), -- cgit 1.2.3-korg