Skip to content

Commit 5d04f05

Browse files
wendanistcheng
authored andcommitted
[portsorch]: Rename function isPortReady() to allPortsReady() (#990)
Signed-off-by: Wenda Ni <wenni@microsoft.com>
1 parent 7382995 commit 5d04f05

16 files changed

Lines changed: 20 additions & 20 deletions

orchagent/aclorch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2128,7 +2128,7 @@ void AclOrch::doTask(Consumer &consumer)
21282128
{
21292129
SWSS_LOG_ENTER();
21302130

2131-
if (!gPortsOrch->isPortReady())
2131+
if (!gPortsOrch->allPortsReady())
21322132
{
21332133
return;
21342134
}

orchagent/copporch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ void CoppOrch::doTask(Consumer &consumer)
589589
{
590590
SWSS_LOG_ENTER();
591591

592-
if (!gPortsOrch->isPortReady())
592+
if (!gPortsOrch->allPortsReady())
593593
{
594594
return;
595595
}

orchagent/fdborch.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ void FdbOrch::doTask(Consumer& consumer)
262262
{
263263
SWSS_LOG_ENTER();
264264

265-
if (!gPortsOrch->isPortReady())
265+
if (!gPortsOrch->allPortsReady())
266266
{
267267
return;
268268
}
@@ -342,7 +342,7 @@ void FdbOrch::doTask(NotificationConsumer& consumer)
342342
{
343343
SWSS_LOG_ENTER();
344344

345-
if (!gPortsOrch->isPortReady())
345+
if (!gPortsOrch->allPortsReady())
346346
{
347347
return;
348348
}

orchagent/flexcounterorch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void FlexCounterOrch::doTask(Consumer &consumer)
4545
{
4646
SWSS_LOG_ENTER();
4747

48-
if (!gPortsOrch->isPortReady())
48+
if (!gPortsOrch->allPortsReady())
4949
{
5050
return;
5151
}

orchagent/intfsorch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ void IntfsOrch::doTask(Consumer &consumer)
252252
{
253253
SWSS_LOG_ENTER();
254254

255-
if (!gPortsOrch->isPortReady())
255+
if (!gPortsOrch->allPortsReady())
256256
{
257257
return;
258258
}

orchagent/mirrororch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,7 @@ void MirrorOrch::doTask(Consumer& consumer)
968968
{
969969
SWSS_LOG_ENTER();
970970

971-
if (!gPortsOrch->isPortReady())
971+
if (!gPortsOrch->allPortsReady())
972972
{
973973
return;
974974
}

orchagent/neighorch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ void NeighOrch::doTask(Consumer &consumer)
275275
{
276276
SWSS_LOG_ENTER();
277277

278-
if (!gPortsOrch->isPortReady())
278+
if (!gPortsOrch->allPortsReady())
279279
{
280280
return;
281281
}

orchagent/orchdaemon.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ bool OrchDaemon::init()
179179

180180
/*
181181
* The order of the orch list is important for state restore of warm start and
182-
* the queued processing in m_toSync map after gPortsOrch->isPortReady() is set.
182+
* the queued processing in m_toSync map after gPortsOrch->allPortsReady() is set.
183183
*
184184
* For the multiple consumers in ports_tables, tasks for LAG_TABLE is processed before VLAN_TABLE
185185
* when iterating ConsumerMap.

orchagent/pfcwdorch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void PfcWdOrch<DropHandler, ForwardHandler>::doTask(Consumer& consumer)
5353
{
5454
SWSS_LOG_ENTER();
5555

56-
if (!gPortsOrch->isPortReady())
56+
if (!gPortsOrch->allPortsReady())
5757
{
5858
return;
5959
}

orchagent/policerorch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ void PolicerOrch::doTask(Consumer &consumer)
114114
{
115115
SWSS_LOG_ENTER();
116116

117-
if (!gPortsOrch->isPortReady())
117+
if (!gPortsOrch->allPortsReady())
118118
{
119119
return;
120120
}

0 commit comments

Comments
 (0)