Skip to content

Commit

Permalink
[AclOrch]: Fix the acl mirror counter doubled by inactive mirror and …
Browse files Browse the repository at this point in the history
…active again (sonic-net#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 <[email protected]>
  • Loading branch information
RichardWu-Hebut authored and stcheng committed Jun 27, 2019
1 parent f3b44c8 commit db251c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orchagent/aclorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit db251c3

Please sign in to comment.