From 236843fa169b2cef7132932a0f6ed64a6db459cc Mon Sep 17 00:00:00 2001 From: Nadiya Date: Mon, 7 May 2018 21:43:54 +0300 Subject: [PATCH] Fix Crm Acl used counter update (#496) Signed-off-by: Nadiya Stetskovych --- orchagent/portsorch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orchagent/portsorch.cpp b/orchagent/portsorch.cpp index 644667f3bdc7..abea052297d1 100644 --- a/orchagent/portsorch.cpp +++ b/orchagent/portsorch.cpp @@ -553,7 +553,7 @@ bool PortsOrch::bindAclTable(sai_object_id_t id, sai_object_id_t table_oid, sai_ port.m_egress_acl_table_group_id = groupOid; } - gCrmOrch->incCrmAclUsedCounter(CrmResourceType::CRM_ACL_GROUP, (sai_acl_stage_t) group_attr.value.s32, SAI_ACL_BIND_POINT_TYPE_PORT); + gCrmOrch->incCrmAclUsedCounter(CrmResourceType::CRM_ACL_GROUP, ingress ? SAI_ACL_STAGE_INGRESS : SAI_ACL_STAGE_EGRESS, SAI_ACL_BIND_POINT_TYPE_PORT); switch (port.m_type) {