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#2314bingwang-ms merged 5 commits intosonic-net:masterfrom
DSCP_TO_TC_MAP from PORT_QOS_MAP|global to switch level#2314Conversation
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
| 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.
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.
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|globalwill be added intoconfig_dbThe 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_MAPis applied to switch level.How I verified it
Verified by a new test case
test_dscp_to_tc_map_applied_to_switchDetails if related