Skip to content

Commit 00f1c42

Browse files
committed
Updated format of generating BUFFER_QUEUE in buffers_defaults templates for wedge100bf-65x
Signed-off-by: MuLin <[email protected]>
1 parent ba30775 commit 00f1c42

File tree

2 files changed

+18
-26
lines changed

2 files changed

+18
-26
lines changed

device/barefoot/x86_64-accton_wedge100bf_65x-r0/mavericks/buffers_defaults_t0.j2

+9-13
Original file line numberDiff line numberDiff line change
@@ -63,21 +63,17 @@
6363
},
6464
{%- endmacro %}
6565

66-
{%- macro generate_pg_profils(port_names) %}
67-
"BUFFER_PG": {
68-
"{{ port_names }}|3-4": {
69-
"profile" : "ingress_lossless_profile"
70-
}
71-
},
72-
{%- endmacro %}
73-
7466
{%- macro generate_queue_buffers(port_names) %}
7567
"BUFFER_QUEUE": {
76-
"{{ port_names }}|3-4": {
77-
"profile" : "egress_lossless_profile"
78-
},
79-
"{{ port_names }}|0-1": {
68+
{% for port in port_names.split(',') %}
69+
"{{ port }}|0-2": {
8070
"profile" : "q_lossy_profile"
81-
}
71+
},
72+
{% endfor %}
73+
{% for port in port_names.split(',') %}
74+
"{{ port }}|3-4": {
75+
"profile" : "egress_lossless_profile"
76+
}{% if not loop.last %},{% endif %}
77+
{% endfor %}
8278
}
8379
{%- endmacro %}

device/barefoot/x86_64-accton_wedge100bf_65x-r0/mavericks/buffers_defaults_t1.j2

+9-13
Original file line numberDiff line numberDiff line change
@@ -63,21 +63,17 @@
6363
},
6464
{%- endmacro %}
6565

66-
{%- macro generate_pg_profils(port_names) %}
67-
"BUFFER_PG": {
68-
"{{ port_names }}|3-4": {
69-
"profile" : "ingress_lossless_profile"
70-
}
71-
},
72-
{%- endmacro %}
73-
7466
{%- macro generate_queue_buffers(port_names) %}
7567
"BUFFER_QUEUE": {
76-
"{{ port_names }}|3-4": {
77-
"profile" : "egress_lossless_profile"
78-
},
79-
"{{ port_names }}|0-1": {
68+
{% for port in port_names.split(',') %}
69+
"{{ port }}|0-2": {
8070
"profile" : "q_lossy_profile"
81-
}
71+
},
72+
{% endfor %}
73+
{% for port in port_names.split(',') %}
74+
"{{ port }}|3-4": {
75+
"profile" : "egress_lossless_profile"
76+
}{% if not loop.last %},{% endif %}
77+
{% endfor %}
8278
}
8379
{%- endmacro %}

0 commit comments

Comments
 (0)