From f52a7b1c34193b827003cf6af7a4827cbb599f09 Mon Sep 17 00:00:00 2001 From: abdosi <58047199+abdosi@users.noreply.github.com> Date: Tue, 30 Aug 2022 14:35:12 -0700 Subject: [PATCH] Fix the Fec Mode Setting of gbsyncd (#2430) Why I did: PR: #2400 made change to pass as argument to API setPortFecMode but did not updated the corresponding gbsyncd API call --- orchagent/portsorch.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/orchagent/portsorch.cpp b/orchagent/portsorch.cpp index 0d4177c6d53f..14e510866008 100755 --- a/orchagent/portsorch.cpp +++ b/orchagent/portsorch.cpp @@ -1290,7 +1290,7 @@ bool PortsOrch::setPortFec(Port &port, string &mode) SWSS_LOG_NOTICE("Set port %s FEC mode %s", port.m_alias.c_str(), mode.c_str()); - setGearboxPortsAttr(port, SAI_PORT_ATTR_FEC_MODE, &mode); + setGearboxPortsAttr(port, SAI_PORT_ATTR_FEC_MODE, &port.m_fec_mode); return true; } @@ -7869,4 +7869,4 @@ void PortsOrch::doTask(swss::SelectableTimer &timer) { m_port_state_poller->stop(); } -} \ No newline at end of file +}