Skip to content

Commit

Permalink
make ArsEnable port attribute optional
Browse files Browse the repository at this point in the history
Summary: as titled

Differential Revision:
D66856091

Privacy Context Container: L1125642

fbshipit-source-id: f688b0d34663f5d09905c97ce6813896a76b9487
  • Loading branch information
Parvez Shaikh authored and facebook-github-bot committed Dec 7, 2024
1 parent 5c5fb49 commit f802946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fboss/agent/hw/sai/switch/npu/SaiPortManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ SaiPortTraits::CreateAttributes SaiPortManager::attributesFromSwPort(
auto portPfcInfo = getPortPfcAttributes(swPort);

#if SAI_API_VERSION >= SAI_VERSION(1, 14, 0)
std::optional<SaiPortTraits::Attributes::ArsEnable> arsEnable = false;
std::optional<SaiPortTraits::Attributes::ArsEnable> arsEnable = std::nullopt;
std::optional<SaiPortTraits::Attributes::ArsPortLoadScalingFactor>
arsPortLoadScalingFactor = std::nullopt;
std::optional<SaiPortTraits::Attributes::ArsPortLoadPastWeight>
Expand Down

0 comments on commit f802946

Please sign in to comment.