From 49011d3804012ecc9509fa53d8af40713a1c6b74 Mon Sep 17 00:00:00 2001 From: Ron He Date: Mon, 2 Dec 2024 16:25:22 -0800 Subject: [PATCH] Sai switch process shel setting deltas Summary: As titled Reviewed By: jasmeetbagga Differential Revision: D66532306 fbshipit-source-id: 6942ca41c3952baa5cc08eee72442a0c1742aa14 --- fboss/agent/hw/sai/switch/SaiSwitch.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/fboss/agent/hw/sai/switch/SaiSwitch.cpp b/fboss/agent/hw/sai/switch/SaiSwitch.cpp index 2ce4847997417..08471dbf3f25d 100644 --- a/fboss/agent/hw/sai/switch/SaiSwitch.cpp +++ b/fboss/agent/hw/sai/switch/SaiSwitch.cpp @@ -1396,6 +1396,14 @@ void SaiSwitch::processSwitchSettingsChangeSansDrainedEntryLocked( newConditionalEntropyRehashPeriodUS.value_or(0)); } } + + { + const auto oldShelConfig = oldSwitchSettings->getSelfHealingEcmpLagConfig(); + const auto newShelConfig = newSwitchSettings->getSelfHealingEcmpLagConfig(); + if (oldShelConfig != newShelConfig) { + managerTable_->switchManager().setShelConfig(newShelConfig); + } + } } template