Skip to content

Commit

Permalink
Rename updatePortStatesXX as refreshPortStatesXX
Browse files Browse the repository at this point in the history
Signed-off-by: Dante Su <dante.su@broadcom.com>
  • Loading branch information
ds952811 committed May 19, 2022
1 parent ddd57fe commit 0f73666
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions orchagent/portsorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6028,7 +6028,7 @@ void PortsOrch::updatePortOperStatus(Port &port, sai_port_oper_status_t status)
if (status == SAI_PORT_OPER_STATUS_UP)
{
/* Refresh AN port states */
updatePortStateAutoNeg(port);
refreshPortStateAutoNeg(port);
/* Stop port state polling for AN */
updatePortStatePoll(port, PORT_STATE_POLL_AN, false);
}
Expand All @@ -6042,7 +6042,7 @@ void PortsOrch::updatePortOperStatus(Port &port, sai_port_oper_status_t status)
if (port.m_admin_state_up && port.m_link_training > 0)
{
/* Refresh LT port states for both link up and down */
updatePortStateLinkTraining(port);
refreshPortStateLinkTraining(port);
if (status == SAI_PORT_OPER_STATUS_UP)
{
/* Stop port state polling for LT */
Expand Down Expand Up @@ -7240,7 +7240,7 @@ bool PortsOrch::decrFdbCount(const std::string& alias, int count)
}

/* Refresh the per-port Auto-Negotiation operational states */
void PortsOrch::updatePortStateAutoNeg(const Port &port)
void PortsOrch::refreshPortStateAutoNeg(const Port &port)
{
SWSS_LOG_ENTER();

Expand All @@ -7263,7 +7263,7 @@ void PortsOrch::updatePortStateAutoNeg(const Port &port)
}

/* Refresh the per-port Link-Training operational states */
void PortsOrch::updatePortStateLinkTraining(const Port &port)
void PortsOrch::refreshPortStateLinkTraining(const Port &port)
{
SWSS_LOG_ENTER();

Expand Down Expand Up @@ -7340,11 +7340,11 @@ void PortsOrch::doTask(swss::SelectableTimer &timer)
}
if (it->second & PORT_STATE_POLL_AN)
{
updatePortStateAutoNeg(port);
refreshPortStateAutoNeg(port);
}
if (it->second & PORT_STATE_POLL_LT)
{
updatePortStateLinkTraining(port);
refreshPortStateLinkTraining(port);
}
++it;
}
Expand Down
4 changes: 2 additions & 2 deletions orchagent/portsorch.h
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,8 @@ class PortsOrch : public Orch, public Subject

map<string, uint32_t> m_port_state_poll;
void updatePortStatePoll(const Port &port, port_state_poll_t type, bool active);
void updatePortStateAutoNeg(const Port &port);
void updatePortStateLinkTraining(const Port &port);
void refreshPortStateAutoNeg(const Port &port);
void refreshPortStateLinkTraining(const Port &port);

void getPortSerdesVal(const std::string& s, std::vector<uint32_t> &lane_values);
bool getPortAdvSpeedsVal(const std::string &s, std::vector<uint32_t> &speed_values);
Expand Down

0 comments on commit 0f73666

Please sign in to comment.