Skip to content

Commit 236843f

Browse files
Nadiyaprsunny
Nadiya
authored andcommitted
Fix Crm Acl used counter update (#496)
Signed-off-by: Nadiya Stetskovych <[email protected]>
1 parent d57f9a1 commit 236843f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

orchagent/portsorch.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ bool PortsOrch::bindAclTable(sai_object_id_t id, sai_object_id_t table_oid, sai_
553553
port.m_egress_acl_table_group_id = groupOid;
554554
}
555555

556-
gCrmOrch->incCrmAclUsedCounter(CrmResourceType::CRM_ACL_GROUP, (sai_acl_stage_t) group_attr.value.s32, SAI_ACL_BIND_POINT_TYPE_PORT);
556+
gCrmOrch->incCrmAclUsedCounter(CrmResourceType::CRM_ACL_GROUP, ingress ? SAI_ACL_STAGE_INGRESS : SAI_ACL_STAGE_EGRESS, SAI_ACL_BIND_POINT_TYPE_PORT);
557557

558558
switch (port.m_type)
559559
{

0 commit comments

Comments
 (0)