Skip to content

Commit 0f73666

Browse files
committed
Rename updatePortStatesXX as refreshPortStatesXX
Signed-off-by: Dante Su <[email protected]>
1 parent ddd57fe commit 0f73666

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

orchagent/portsorch.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -6028,7 +6028,7 @@ void PortsOrch::updatePortOperStatus(Port &port, sai_port_oper_status_t status)
60286028
if (status == SAI_PORT_OPER_STATUS_UP)
60296029
{
60306030
/* Refresh AN port states */
6031-
updatePortStateAutoNeg(port);
6031+
refreshPortStateAutoNeg(port);
60326032
/* Stop port state polling for AN */
60336033
updatePortStatePoll(port, PORT_STATE_POLL_AN, false);
60346034
}
@@ -6042,7 +6042,7 @@ void PortsOrch::updatePortOperStatus(Port &port, sai_port_oper_status_t status)
60426042
if (port.m_admin_state_up && port.m_link_training > 0)
60436043
{
60446044
/* Refresh LT port states for both link up and down */
6045-
updatePortStateLinkTraining(port);
6045+
refreshPortStateLinkTraining(port);
60466046
if (status == SAI_PORT_OPER_STATUS_UP)
60476047
{
60486048
/* Stop port state polling for LT */
@@ -7240,7 +7240,7 @@ bool PortsOrch::decrFdbCount(const std::string& alias, int count)
72407240
}
72417241

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

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

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

@@ -7340,11 +7340,11 @@ void PortsOrch::doTask(swss::SelectableTimer &timer)
73407340
}
73417341
if (it->second & PORT_STATE_POLL_AN)
73427342
{
7343-
updatePortStateAutoNeg(port);
7343+
refreshPortStateAutoNeg(port);
73447344
}
73457345
if (it->second & PORT_STATE_POLL_LT)
73467346
{
7347-
updatePortStateLinkTraining(port);
7347+
refreshPortStateLinkTraining(port);
73487348
}
73497349
++it;
73507350
}

orchagent/portsorch.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,8 @@ class PortsOrch : public Orch, public Subject
355355

356356
map<string, uint32_t> m_port_state_poll;
357357
void updatePortStatePoll(const Port &port, port_state_poll_t type, bool active);
358-
void updatePortStateAutoNeg(const Port &port);
359-
void updatePortStateLinkTraining(const Port &port);
358+
void refreshPortStateAutoNeg(const Port &port);
359+
void refreshPortStateLinkTraining(const Port &port);
360360

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

0 commit comments

Comments
 (0)