Skip to content

Commit

Permalink
Fix for compile error
Browse files Browse the repository at this point in the history
Signed-off-by: Abhishek Dosi <[email protected]>
  • Loading branch information
abdosi committed Aug 20, 2020
1 parent 30ddd59 commit 6d80ea9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions orchagent/portsorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2006,7 +2006,7 @@ void PortsOrch::doPortTask(Consumer &consumer)
if (p.m_admin_state_up)
{
/* Bring port down before applying fec mode*/
if (!setPortAdminStatus(p, false))
if (!setPortAdminStatus(p.m_port_id, false))
{
SWSS_LOG_ERROR("Failed to set port %s admin status DOWN to set fec mode", alias.c_str());
it++;
Expand All @@ -2016,7 +2016,7 @@ void PortsOrch::doPortTask(Consumer &consumer)
p.m_admin_state_up = false;
p.m_fec_mode = fec_mode_map[fec_mode];

if (setPortFec(p, p.m_fec_mode))
if (setPortFec(p.m_port_id, p.m_fec_mode))
{
m_portList[alias] = p;
SWSS_LOG_NOTICE("Set port %s fec to %s", alias.c_str(), fec_mode.c_str());
Expand All @@ -2032,7 +2032,7 @@ void PortsOrch::doPortTask(Consumer &consumer)
{
/* Port is already down, setting fec mode*/
p.m_fec_mode = fec_mode_map[fec_mode];
if (setPortFec(p, p.m_fec_mode))
if (setPortFec(p.m_port_id, p.m_fec_mode))
{
m_portList[alias] = p;
SWSS_LOG_NOTICE("Set port %s fec to %s", alias.c_str(), fec_mode.c_str());
Expand Down

0 comments on commit 6d80ea9

Please sign in to comment.