Skip to content

Commit 8788f4f

Browse files
wendaniyxieca
authored andcommitted
cherry-picking diff between #3628 and #3561
Revert "Configure buffer profile to all ports (#3561)" (#3628) Configure buffer profile to all ports (#3561) This reverts commit 8861cbe. Signed-off-by: Wenda Ni <[email protected]>
1 parent d6d389d commit 8788f4f

File tree

2 files changed

+529
-7
lines changed

2 files changed

+529
-7
lines changed

files/build_templates/buffers_config.j2

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ def
131131
{{ defs.generate_pg_profils(port_names_active) }}
132132
{% else %}
133133
"BUFFER_PG": {
134-
"{{ port_names_active }}|0": {
134+
{% for port in PORT_ACTIVE %}
135+
"{{ port }}|0": {
135136
"profile" : "[BUFFER_PROFILE|ingress_lossy_profile]"
136137
}{% if not loop.last %},{% endif %}
137138

@@ -143,13 +144,18 @@ def
143144
{{ defs.generate_queue_buffers(port_names_active) }}
144145
{% else %}
145146
"BUFFER_QUEUE": {
146-
"{{ port_names_active }}|3-4": {
147+
{% for port in PORT_ACTIVE %}
148+
"{{ port }}|3-4": {
147149
"profile" : "[BUFFER_PROFILE|egress_lossless_profile]"
148150
},
149-
"{{ port_names_active }}|0-2": {
151+
{% endfor %}
152+
{% for port in PORT_ACTIVE %}
153+
"{{ port }}|0-2": {
150154
"profile" : "[BUFFER_PROFILE|egress_lossy_profile]"
151155
},
152-
"{{ port_names_active }}|5-6": {
156+
{% endfor %}
157+
{% for port in PORT_ACTIVE %}
158+
"{{ port }}|5-6": {
153159
"profile" : "[BUFFER_PROFILE|egress_lossy_profile]"
154160
}{% if not loop.last %},{% endif %}
155161

0 commit comments

Comments
 (0)