Skip to content

Commit

Permalink
Add support for SAI_SWITCH_ATTR_AVAILABLE_IPMC_ENTRY needed by CRM (#756
Browse files Browse the repository at this point in the history
)

Signed-off-by: Prabhu Sreenivasan <prabhu.sreenivasan@broadcom.com>

Co-authored-by: Prabhu Sreenivasan <ps944501@xl-sj1-31.lvn.broadcom.net>
  • Loading branch information
PrabhuSreenivasan and Prabhu Sreenivasan authored Jan 7, 2021
1 parent e940136 commit 9ecc541
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions vslib/inc/SwitchStateBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,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;
Expand Down
2 changes: 2 additions & 0 deletions vslib/src/SwitchStateBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -963,6 +963,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 }
};

Expand Down Expand Up @@ -1898,6 +1899,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;

Expand Down

0 comments on commit 9ecc541

Please sign in to comment.