From b73151d7bad981955643c3a6bb2480e1da9ab00f Mon Sep 17 00:00:00 2001 From: Prabhu Sreenivasan Date: Fri, 25 Dec 2020 02:37:32 -0800 Subject: [PATCH] Add support for SAI_SWITCH_ATTR_AVAILABLE_IPMC_ENTRY needed by CRM Signed-off-by: Prabhu Sreenivasan --- vslib/inc/SwitchStateBase.h | 1 + vslib/src/SwitchStateBase.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/vslib/inc/SwitchStateBase.h b/vslib/inc/SwitchStateBase.h index acc832f59..7ec885b02 100644 --- a/vslib/inc/SwitchStateBase.h +++ b/vslib/inc/SwitchStateBase.h @@ -490,6 +490,7 @@ namespace saivs constexpr static const int m_maxSNATEntries = 100; constexpr static const int m_maxDNATEntries = 100; + constexpr static const int m_maxIPMCEntries = 100; constexpr static const int m_maxDoubleNATEntries = 50; /* Half of single NAT entry */ constexpr static const int m_maxAclTables = 3; diff --git a/vslib/src/SwitchStateBase.cpp b/vslib/src/SwitchStateBase.cpp index a5f9f73f1..6cf12245f 100644 --- a/vslib/src/SwitchStateBase.cpp +++ b/vslib/src/SwitchStateBase.cpp @@ -883,6 +883,7 @@ sai_status_t SwitchStateBase::set_static_crm_values() { SAI_SWITCH_ATTR_AVAILABLE_FDB_ENTRY, m_maxFdbEntries }, { SAI_SWITCH_ATTR_AVAILABLE_SNAT_ENTRY, m_maxSNATEntries }, { SAI_SWITCH_ATTR_AVAILABLE_DNAT_ENTRY, m_maxDNATEntries }, + { SAI_SWITCH_ATTR_AVAILABLE_IPMC_ENTRY, m_maxIPMCEntries }, { SAI_SWITCH_ATTR_AVAILABLE_DOUBLE_NAT_ENTRY, m_maxDoubleNATEntries } }; @@ -1787,6 +1788,7 @@ sai_status_t SwitchStateBase::refresh_read_only( case SAI_SWITCH_ATTR_AVAILABLE_ACL_TABLE_GROUP: case SAI_SWITCH_ATTR_AVAILABLE_SNAT_ENTRY: case SAI_SWITCH_ATTR_AVAILABLE_DNAT_ENTRY: + case SAI_SWITCH_ATTR_AVAILABLE_IPMC_ENTRY: case SAI_SWITCH_ATTR_AVAILABLE_DOUBLE_NAT_ENTRY: return SAI_STATUS_SUCCESS;