From db251c362aa05b9897a41695c231fb40e8adb787 Mon Sep 17 00:00:00 2001 From: RichardWu-Hebut Date: Thu, 27 Jun 2019 12:33:09 +0800 Subject: [PATCH] [AclOrch]: Fix the acl mirror counter doubled by inactive mirror and active again (#952) When disabling the mirror session, the aclorch will record the current counter, but it should invoke the base class function to get the current acl entry counter, otherwise the counters will be doubled by invoke the AclRuleMirror::getCounters() Signed-off-by: Richard Wu --- orchagent/aclorch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orchagent/aclorch.cpp b/orchagent/aclorch.cpp index 1980544ccba1..c721183d8631 100644 --- a/orchagent/aclorch.cpp +++ b/orchagent/aclorch.cpp @@ -1133,7 +1133,7 @@ void AclRuleMirror::update(SubjectType type, void *cntx) else { // Store counters before deactivating ACL rule - counters += getCounters(); + counters += AclRule::getCounters(); SWSS_LOG_INFO("Deactivating mirroring ACL %s for session %s", m_id.c_str(), m_sessionName.c_str()); remove();