Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@

{%- macro generate_queue_buffers(port_names_active, port_names_inactive) %}
"BUFFER_QUEUE": {
{% if dynamic_mode is not defined %}
{% for port in port_names_active.split(',') %}
"{{ port }}|0-3": {
"profile" : "q_lossy_profile"
Expand All @@ -170,13 +171,37 @@

{% endfor %}
{% if port_names_inactive|length > 0 %}
{% if dynamic_mode is defined %}
{% if port_names_active.split(',')|length > 0 %},{% endif %}
{% for port in port_names_inactive.split(',') %}
{%- if loop.first -%},{%- endif -%}
"{{ port }}|1-6": {
"{{ port }}|0-3": {
"profile" : "q_lossy_profile"
},
{% endfor %}
{% for port in port_names_inactive.split(',') %}
"{{ port }}|4": {
"profile" : "q_lossy_infinity_profile"
},
{% endfor %}
{% for port in port_names_inactive.split(',') %}
"{{ port }}|5": {
"profile" : "q_lossy_minus_3_profile"
},
{% endfor %}
{% for port in port_names_inactive.split(',') %}
"{{ port }}|6": {
"profile" : "q_lossy_profile"
}{% if not loop.last %},{% endif %}
{% endfor %}
{% else %}
{% if port_names_active.split(',')|length > 0 %},{% endif %}
{% for port in port_names_inactive.split(',') %}
"{{ port }}|0-6": {
"profile" : "egress_lossy_zero_profile"
}{% if not loop.last %},{% endif %}

{% endfor %}
{% endif %}
{% endif %}
{% endif %}
}
{%- endmacro %}
Expand Down
Loading