Skip to content

Commit c6b0c3e

Browse files
authored
[portsorch] DOM config change causes interface link to flap (sonic-net#4056)
This PR fixes a bug where DOM (transceiver) configuration changes cause unexpected interface link flaps due to unnecessary FEC reconfiguration. The issue was introduced in PR sonic-net#3529 which refactored port configuration handling but inadvertently removed the logic to set the m_fec_cfg flag after applying FEC configuration at runtime in doPortTask(), while it was still being set during initial port creation in addPortBulk().
1 parent 7297d14 commit c6b0c3e

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

orchagent/portsorch.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4795,11 +4795,6 @@ void PortsOrch::doPortTask(Consumer &consumer)
47954795
p.m_alias.c_str(), pCfg.speed.value
47964796
);
47974797
}
4798-
else
4799-
{
4800-
/* Always update Gearbox speed on Gearbox ports */
4801-
setGearboxPortsAttr(p, SAI_PORT_ATTR_SPEED, &pCfg.speed.value);
4802-
}
48034798
}
48044799

48054800
if (pCfg.adv_speeds.is_set)
@@ -5087,6 +5082,7 @@ void PortsOrch::doPortTask(Consumer &consumer)
50875082

50885083
p.m_fec_mode = pCfg.fec.value;
50895084
p.m_override_fec = pCfg.fec.override_fec;
5085+
p.m_fec_cfg = true;
50905086
m_portList[p.m_alias] = p;
50915087

50925088
SWSS_LOG_NOTICE(

0 commit comments

Comments
 (0)