diff --git a/orchagent/portsorch.cpp b/orchagent/portsorch.cpp index 6e231162d9..0b8d9a0549 100755 --- a/orchagent/portsorch.cpp +++ b/orchagent/portsorch.cpp @@ -1946,35 +1946,18 @@ void PortsOrch::initPortCapAutoNeg(Port &port) { // To avoid breakage on the existing platforms, AN should be 1 by default port.m_cap_an = 1; - SWSS_LOG_WARN("Unable to get %s AN capability, assumming it's supported", + SWSS_LOG_WARN("Unable to get %s AN support capability", port.m_alias.c_str()); } } void PortsOrch::initPortCapLinkTraining(Port &port) { - sai_status_t status; - sai_attribute_t attr; - - // TODO: Use SAI_PORT_ATTR_SUPPORTED_LINK_TRAINING_MODE for the query - // - // While SAI_PORT_ATTR_SUPPORTED_LINK_TRAINING_MODE is available at SAI master, - // it's not available in SAI v1.10 paired with SONiC.202205. - // And given that LT is part of AN, it should be okay to use - // SAI_PORT_ATTR_SUPPORTED_AUTO_NEG_MODE as a fallback plan. - attr.id = SAI_PORT_ATTR_SUPPORTED_AUTO_NEG_MODE; - status = sai_port_api->get_port_attribute(port.m_port_id, 1, &attr); - if (status == SAI_STATUS_SUCCESS) - { - port.m_cap_lt = attr.value.booldata ? 1 : 0; - } - else - { - // Align with AN to have LT flagged as supported - port.m_cap_lt = 1; - SWSS_LOG_WARN("Unable to get %s LT capability, assumming it's supported", - port.m_alias.c_str()); - } + // TODO: + // Add SAI_PORT_ATTR_SUPPORTED_LINK_TRAINING_MODE query when it is + // available in the saiport.h of SAI. + port.m_cap_lt = 1; + SWSS_LOG_WARN("Unable to get %s LT support capability", port.m_alias.c_str()); } /*