Skip to content

Commit 29a6bc4

Browse files
Minor bug fix
1 parent 567de6b commit 29a6bc4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

orchagent/portsorch.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3812,9 +3812,9 @@ bool PortsOrch::initPort(const PortConfig &port)
38123812
}
38133813
if (flex_counters_orch->getPortAttrCountersState())
38143814
{
3815-
if (p.m_type == Port::Type::PHY && supportsPortAttr(p.m_port_id, p.m_alias.c_str()))
3815+
if (p.m_type == Port::Type::PHY && !m_supported_phy_attrs.empty())
38163816
{
3817-
if (!m_supported_phy_attrs.empty())
3817+
if (supportsPortAttr(p.m_port_id, p.m_alias.c_str()))
38183818
{
38193819
auto port_attr_stats = generateCounterStats(m_supported_phy_attrs, sai_serialize_port_attr);
38203820
port_attr_manager.setCounterIdList(p.m_port_id,

0 commit comments

Comments
 (0)