Skip to content

Commit

Permalink
Set max switch id on create switch for 11.0 dnx+
Browse files Browse the repository at this point in the history
Summary:
As titled. Previous diff missed create switch part for
11.0. This meant that we missed setting this cold boot.

Reviewed By: zechengh09

Differential Revision:
D67508279

Privacy Context Container: L1125642

fbshipit-source-id: 8b97c38466b536dda3a717a1cf21fcda96d38d02
  • Loading branch information
Jasmeet Bagga authored and facebook-github-bot committed Dec 20, 2024
1 parent adab2df commit af48baf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fboss/agent/platforms/sai/SaiPlatform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,9 @@ SaiSwitchTraits::CreateAttributes SaiPlatform::getSwitchAttributes(
std::optional<int32_t> maxSystemPorts;
std::optional<int32_t> maxVoqs;
std::optional<int32_t> maxSwitchId;
#if defined(BRCM_SAI_SDK_DNX) && defined(BRCM_SAI_SDK_GTE_11_0)
maxSwitchId = getAsic()->getMaxSwitchId();
#endif
#if defined(BRCM_SAI_SDK_DNX) && defined(BRCM_SAI_SDK_GTE_12_0)
if (getAsic()->getSwitchType() == cfg::SwitchType::FABRIC &&
getAsic()->getFabricNodeRole() == HwAsic::FabricNodeRole::DUAL_STAGE_L1) {
Expand All @@ -701,7 +704,6 @@ SaiSwitchTraits::CreateAttributes SaiPlatform::getSwitchAttributes(
constexpr uint32_t kRamon3LlfcThreshold{800};
fabricLLFC = std::vector<uint32_t>({kRamon3LlfcThreshold});
}
maxSwitchId = getAsic()->getMaxSwitchId();
if (isDualStage3Q2QMode()) {
maxSystemPortId = 32515;
maxLocalSystemPortId = 5;
Expand Down

0 comments on commit af48baf

Please sign in to comment.