Skip to content

Commit

Permalink
Fix the Fec Mode Setting of gbsyncd (sonic-net#2430)
Browse files Browse the repository at this point in the history
Why I did:

PR: sonic-net#2400 made change to pass <string> as argument to API setPortFecMode but did not updated the corresponding gbsyncd API call
  • Loading branch information
abdosi authored Aug 30, 2022
1 parent 8cc0a45 commit f52a7b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions orchagent/portsorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -7869,4 +7869,4 @@ void PortsOrch::doTask(swss::SelectableTimer &timer)
{
m_port_state_poller->stop();
}
}
}

0 comments on commit f52a7b1

Please sign in to comment.