Skip to content

Commit 6d80ea9

Browse files
committed
Fix for compile error
Signed-off-by: Abhishek Dosi <[email protected]>
1 parent 30ddd59 commit 6d80ea9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

orchagent/portsorch.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -2006,7 +2006,7 @@ void PortsOrch::doPortTask(Consumer &consumer)
20062006
if (p.m_admin_state_up)
20072007
{
20082008
/* Bring port down before applying fec mode*/
2009-
if (!setPortAdminStatus(p, false))
2009+
if (!setPortAdminStatus(p.m_port_id, false))
20102010
{
20112011
SWSS_LOG_ERROR("Failed to set port %s admin status DOWN to set fec mode", alias.c_str());
20122012
it++;
@@ -2016,7 +2016,7 @@ void PortsOrch::doPortTask(Consumer &consumer)
20162016
p.m_admin_state_up = false;
20172017
p.m_fec_mode = fec_mode_map[fec_mode];
20182018

2019-
if (setPortFec(p, p.m_fec_mode))
2019+
if (setPortFec(p.m_port_id, p.m_fec_mode))
20202020
{
20212021
m_portList[alias] = p;
20222022
SWSS_LOG_NOTICE("Set port %s fec to %s", alias.c_str(), fec_mode.c_str());
@@ -2032,7 +2032,7 @@ void PortsOrch::doPortTask(Consumer &consumer)
20322032
{
20332033
/* Port is already down, setting fec mode*/
20342034
p.m_fec_mode = fec_mode_map[fec_mode];
2035-
if (setPortFec(p, p.m_fec_mode))
2035+
if (setPortFec(p.m_port_id, p.m_fec_mode))
20362036
{
20372037
m_portList[alias] = p;
20382038
SWSS_LOG_NOTICE("Set port %s fec to %s", alias.c_str(), fec_mode.c_str());

0 commit comments

Comments
 (0)