Skip to content

Commit

Permalink
[202205_1_rc] [202205] [ACL] dereg acl-rule counters during acl-table…
Browse files Browse the repository at this point in the history
… del (sonic-net#2574)
  • Loading branch information
volodymyrsamotiy committed Dec 29, 2022
1 parent d627bcd commit 8106d38
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions orchagent/aclorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2525,6 +2525,12 @@ bool AclTable::clear()
for (auto& rulepair: rules)
{
auto& rule = *rulepair.second;

if (rule.hasCounter())
{
m_pAclOrch->deregisterFlexCounter(rule);
}

bool suc = rule.remove();
if (!suc)
{
Expand Down

0 comments on commit 8106d38

Please sign in to comment.