-
Notifications
You must be signed in to change notification settings - Fork 529
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apply DSCP_TO_TC_MAP
from PORT_QOS_MAP|global
to switch level
#2314
Apply DSCP_TO_TC_MAP
from PORT_QOS_MAP|global
to switch level
#2314
Conversation
Signed-off-by: bingwang <wang.bing@microsoft.com>
Hi
I would prefer the second option because by doing so the global DSCP_TO_TC_MAP won't be applied to vendors who doesn't need it. Db_migrator can be leveraged for backward caompatibility.
Stephen |
Thanks @stephenxs for the great suggestions. |
Signed-off-by: bingwang <wang.bing@microsoft.com>
DSCP_TO_TC_MAP|AZURE
to switch levelDSCP_TO_TC_MAP
from PORT_QOS_MAP|global
to switch level
orchagent/qosorch.cpp
Outdated
task_process_status task_status = task_process_status::task_success; | ||
if (OP == DEL_COMMAND) | ||
{ | ||
// Ignore the DEL operation for switch level mapping |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't it be set to SAI_NULL_OBJECT_ID when being removed?
It will be unable to clean the reference to the global map if we ignore the global map removing operation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated. Thanks
Signed-off-by: bingwang <wang.bing@microsoft.com>
Signed-off-by: bingwang <wang.bing@microsoft.com>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
…nic-net#2314) * Apply DSCP_TO_TC_MAP|AZURE to switch level Signed-off-by: bingwang <wang.bing@microsoft.com>
Signed-off-by: bingwang wang.bing@microsoft.com
What I did
This PR is to update the code for applying switch level
DSCP_TO_TC_MAP
.After PR sonic-net/sonic-buildimage#10565, there will be two DSCP_TO_TC_MAP
To address the issue, an entry
PORT_QOS_MAP|global
will be added intoconfig_db
The entry will be consumed by
qosorch
, and the specified map will be applied to switch.Why I did it
This change is to ensure the correct
DSCP_TO_TC_MAP
is applied to switch level.How I verified it
Verified by a new test case
test_dscp_to_tc_map_applied_to_switch
Details if related