Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions orchagent/bufferorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1222,9 +1222,14 @@ task_process_status BufferOrch::processQueuePost(const QueueTask& task)
}
else
{
if (gPortsOrch->isPortAdminUp(port_name))
/* In the Voq Switch, the admin status is set to True when the system port is added to the m_portList map
and always True for remote System Port, so no need to check for remote system port*/
if (!((gMySwitchType == "voq") && (tokens.size() == 4)))
{
SWSS_LOG_WARN("Queue profile '%s' applied after port %s is up", key.c_str(), port_name.c_str());
if (gPortsOrch->isPortAdminUp(port_name))
{
SWSS_LOG_WARN("Queue profile '%s' applied after port %s is up", key.c_str(), port_name.c_str());
}
}
}
}
Expand Down
15 changes: 15 additions & 0 deletions orchagent/port/porthlpr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1328,6 +1328,21 @@ bool PortHelper::parsePortConfig(PortConfig &port) const
return false;
}
}
else if (field == PORT_MACSEC)
{
/* Placeholder to prevent warning. Parsed by macsecorch.*/
SWSS_LOG_INFO("Parsing %s", field.c_str());
}
else if (field == PORT_ASIC_PORT_NAME)
{
/* Placeholder to prevent warning. Not used by orchagent.*/
SWSS_LOG_INFO("Parsing %s", field.c_str());
}
else if ((field == PORT_CORE_ID) || (field == PORT_CORE_PORT_ID) || (field == PORT_NUM_VOQ))
{
/* Placeholder to prevent warning. These fields are taken from SYSTEM_PORT*/
SWSS_LOG_INFO("Parsing %s", field.c_str());
}
else
{
SWSS_LOG_WARN("Unknown field(%s): skipping ...", field.c_str());
Expand Down
5 changes: 5 additions & 0 deletions orchagent/port/portschema.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,8 @@
#define PORT_MODE "mode"
#define PORT_UNRELIABLE_LOS "unreliable_los"
#define PORT_MEDIA_TYPE "media_type"
#define PORT_MACSEC "macsec"
#define PORT_ASIC_PORT_NAME "asic_port_name"
#define PORT_CORE_ID "core_id"
#define PORT_CORE_PORT_ID "core_port_id"
#define PORT_NUM_VOQ "num_voq"
4 changes: 3 additions & 1 deletion tests/mock_tests/portsorch_ut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,9 @@ namespace portsorch_test
{ "tpid", "0x9100" },
{ "pfc_asym", "on" },
{ "link_training", "on" },
{ "admin_status", "up" }
{ "admin_status", "up" },
{ "macsec", "basic-profile" },
{ "num_voq", "8" }
}
}};

Expand Down