Skip to content

Commit

Permalink
Remove empty dscp_to_tc_map macro in qos.j2
Browse files Browse the repository at this point in the history
Previously we disable this table by default as sai doestn't support it.
Now they have supported it and we need it to enable inner dscp map to tc
feature, so remove the old dummy marco and update testing case
accordingly.

Signed-off-by: Yuanzhe, Liu <[email protected]>
  • Loading branch information
yuazhe committed Dec 25, 2024
1 parent c7fdba0 commit 95aa879
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{#
Copyright (c) 2020-2023 NVIDIA CORPORATION & AFFILIATES.
Apache-2.0
SPDX-FileCopyrightText: NVIDIA CORPORATION & AFFILIATES
Copyright (c) 2017-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: Apache-2.0
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -271,9 +272,6 @@
},
{%- endmacro %}
{%- endif %}
{%- macro generate_global_dscp_to_tc_map() %}
{# This is an empty macro since the global DSCP_TO_TC map is not required #}
{%- endmacro %}

{% endif %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@
}
},
"PORT_QOS_MAP": {
"global": {
"dscp_to_tc_map" : "AZURE"
},
"Ethernet0": {
"dscp_to_tc_map" : "AZURE",
"tc_to_queue_map" : "AZURE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@
}
},
"PORT_QOS_MAP": {
"global": {
"dscp_to_tc_map" : "AZURE"
},
"Ethernet0": {
"dscp_to_tc_map" : "AZURE_UPLINK",
"tc_to_queue_map" : "AZURE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,9 @@
}
},
"PORT_QOS_MAP": {
"global": {
"dscp_to_tc_map" : "AZURE"
},

"Ethernet2": {

Expand Down

0 comments on commit 95aa879

Please sign in to comment.