Skip to content

Commit f52a7b1

Browse files
authored
Fix the Fec Mode Setting of gbsyncd (#2430)
Why I did: PR: #2400 made change to pass <string> as argument to API setPortFecMode but did not updated the corresponding gbsyncd API call
1 parent 8cc0a45 commit f52a7b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

orchagent/portsorch.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1290,7 +1290,7 @@ bool PortsOrch::setPortFec(Port &port, string &mode)
12901290

12911291
SWSS_LOG_NOTICE("Set port %s FEC mode %s", port.m_alias.c_str(), mode.c_str());
12921292

1293-
setGearboxPortsAttr(port, SAI_PORT_ATTR_FEC_MODE, &mode);
1293+
setGearboxPortsAttr(port, SAI_PORT_ATTR_FEC_MODE, &port.m_fec_mode);
12941294

12951295
return true;
12961296
}
@@ -7869,4 +7869,4 @@ void PortsOrch::doTask(swss::SelectableTimer &timer)
78697869
{
78707870
m_port_state_poller->stop();
78717871
}
7872-
}
7872+
}

0 commit comments

Comments
 (0)