Skip to content

Commit aac71e6

Browse files
authored
Don't update pools when ingress_lossless_pool is created but the initialization hasn't finished yet (#1685)
Bug: The buffer pools will be created after a short timer and then won't be updated until the initialization has finished. This is to avoid repeatedly updating buffer pools after BUFFER_PG and BUFFER_QUEUE have been created for each port. However, when the ingress_lossless_pool is created it will trigger the buffer pools to be updated for shared headroom pool. If this happens during intialization, it causes all the buffer pools created after ingress_lossless_pool won't be created until the initialization has been done. Fix: Don't trigger updating buffer pools when creating ingress_lossless_pool during intialization. Signed-off-by: Stephen Sun <[email protected]>
1 parent ae5f051 commit aac71e6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cfgmgr/buffermgrdyn.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,10 @@ void BufferMgrDynamic::refreshSharedHeadroomPool(bool enable_state_updated_by_ra
10011001
updateBufferPoolToDb(INGRESS_LOSSLESS_PG_POOL_NAME, ingressLosslessPool);
10021002
}
10031003

1004-
checkSharedBufferPoolSize();
1004+
if (m_portInitDone)
1005+
{
1006+
checkSharedBufferPoolSize();
1007+
}
10051008
}
10061009

10071010
// Main flows

0 commit comments

Comments
 (0)