From 0f73666ba3b13af2116e55b0238e96c6e9c49270 Mon Sep 17 00:00:00 2001 From: Dante Su Date: Thu, 19 May 2022 11:28:38 +0000 Subject: [PATCH] Rename updatePortStatesXX as refreshPortStatesXX Signed-off-by: Dante Su --- orchagent/portsorch.cpp | 12 ++++++------ orchagent/portsorch.h | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/orchagent/portsorch.cpp b/orchagent/portsorch.cpp index 7cad4a938f..132d7c2374 100755 --- a/orchagent/portsorch.cpp +++ b/orchagent/portsorch.cpp @@ -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); } @@ -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 */ @@ -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(); @@ -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(); @@ -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; } diff --git a/orchagent/portsorch.h b/orchagent/portsorch.h index 8814225e1c..2eb0e0b97e 100755 --- a/orchagent/portsorch.h +++ b/orchagent/portsorch.h @@ -355,8 +355,8 @@ class PortsOrch : public Orch, public Subject map 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 &lane_values); bool getPortAdvSpeedsVal(const std::string &s, std::vector &speed_values);