Skip to content

Commit 8da47eb

Browse files
author
Jaganathan Anbalagan
committed
Signed-off-by: Jaganathan Anbalagan <[email protected]>
Addressing PR comments-cosmetic
1 parent 7655a26 commit 8da47eb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

orchagent/portsorch.cpp

+6-2
Original file line numberDiff line numberDiff line change
@@ -994,6 +994,11 @@ void PortsOrch::getCpuPort(Port &port)
994994
port = m_cpuPort;
995995
}
996996

997+
/*
998+
* Create host_tx_ready field in PORT_TABLE of STATE-DB
999+
* and set the field to false by default for the
1000+
* front<Ethernet> port.
1001+
*/
9971002
void PortsOrch::initHostTxReadyState(Port &port)
9981003
{
9991004
SWSS_LOG_ENTER();
@@ -1013,7 +1018,6 @@ void PortsOrch::initHostTxReadyState(Port &port)
10131018
}
10141019
}
10151020

1016-
/* Create host_tx_ready field in state-DB and set it to false by default. */
10171021
if (hostTxReady.empty())
10181022
{
10191023
m_portStateTable.hset(port.m_alias, "host_tx_ready", "false");
@@ -1054,7 +1058,7 @@ bool PortsOrch::setPortAdminStatus(Port &port, bool state)
10541058
{
10551059
SWSS_LOG_ERROR("Failed to set admin status on PHY %s to port pid:%" PRIx64,
10561060
state ? "UP" : "DOWN", port.m_port_id);
1057-
/* add task handler to recover/take action on this failure */
1061+
/* TODO add task handler to recover/take action on this failure */
10581062
}
10591063

10601064
/* Update the state table for 'host_tx_ready'*/

0 commit comments

Comments
 (0)