Skip to content

Updated Chassis MMU settings for 40G/100G/400G line cards #11108

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 23, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
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
@@ -1,65 +1,37 @@
{%- set default_cable = '5m' %}

{%- macro generate_port_lists(PORT_ALL) %}
{# Generate list of ports #}
{%- for port_idx in range(0,192,4) %}
{%- if PORT_ALL.append("Ethernet%d" % (port_idx)) %}{%- endif %}
{%- endfor %}
{%- endmacro %}

{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_lossless_pool": {
"size": "3220805000",
"type": "both",
"mode": "dynamic",
"xoff": "2102272"
}
},
"BUFFER_PROFILE": {
"ingress_lossless_profile": {
"pool":"ingress_lossless_pool",
"size":"1280",
"dynamic_th":"-2",
"xon_offset":"2560",
"xon":"0",
"xoff":"66048"
},
"ingress_lossy_profile": {
"pool":"ingress_lossless_pool",
"size":"0",
"xon_offset":"0",
"static_th":"30535680"
},
"egress_lossless_profile": {
"pool":"ingress_lossless_pool",
"size":"0",
"static_th":"33030144"
},
"egress_lossy_profile": {
"pool":"ingress_lossless_pool",
"size":"0",
"dynamic_th":"-1"
}
},
{%- endmacro %}

{%- macro generate_queue_buffers(port_names) %}
"BUFFER_QUEUE": {
{% for port in port_names.split(',') %}
"{{ port }}|3-4": {
"profile" : "ingress_lossless_profile"
},
{% endfor %}
{% for port in port_names.split(',') %}
"{{ port }}|0-2": {
"profile" : "egress_lossy_profile"
},
{% endfor %}
{% for port in port_names.split(',') %}
"{{ port }}|5-6": {
"profile" : "egress_lossy_profile"
}{% if not loop.last %},{% endif %}
{% endfor %}
}
{%- endmacro %}
{%- set default_cable = '300m' %}

{%- macro generate_port_lists(PORT_ALL) %}
{# Generate list of ports #}
{%- for port_idx in range(0,192,4) %}
{%- if PORT_ALL.append("Ethernet%d" % (port_idx)) %}{%- endif %}
{%- endfor %}
{%- endmacro %}

{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_lossless_pool": {
"size": "6441610000",
"type": "both",
"mode": "dynamic",
"xoff": "11678515"
}
},
"BUFFER_PROFILE": {
"ingress_lossy_profile": {
"pool":"ingress_lossless_pool",
"size":"1280",
"xon_offset": "2560",
"dynamic_th":"0"
},
"egress_lossless_profile": {
"pool":"ingress_lossless_pool",
"size":"0",
"static_th":"33030144"
},
"egress_lossy_profile": {
"pool":"ingress_lossless_pool",
"size":"0",
"dynamic_th":"-1"
}
},
{%- endmacro %}
Original file line number Diff line number Diff line change
@@ -1,23 +1,17 @@
# PG lossless profiles.
# speed cable size xon xoff threshold xon_offset
10000 5m 1280 2560 45506 0 1280
25000 5m 1280 2560 49152 0 1280
40000 5m 1280 2560 49152 0 1280
50000 5m 1280 2560 53248 0 1280
100000 5m 1280 2560 65536 0 1280
200000 5m 1280 2560 90112 0 1280
400000 5m 1280 2560 135168 0 1280
10000 40m 1280 2560 45506 0 1280
25000 40m 1280 2560 49152 0 1280
40000 40m 1280 2560 53248 0 1280
50000 40m 1280 2560 57344 0 1280
100000 40m 1280 2560 69632 0 1280
200000 40m 1280 2560 102400 0 1280
400000 40m 1280 2560 159744 0 1280
10000 300m 1280 2560 49152 0 1280
25000 300m 1280 2560 61440 0 1280
40000 300m 1280 2560 69632 0 1280
50000 300m 1280 2560 77824 0 1280
100000 300m 1280 2560 114688 0 1280
200000 300m 1280 2560 188416 0 1280
400000 300m 1280 2560 331776 0 1280
# PG lossless profiles.
# speed cable size xon xoff threshold xon_offset
40000 300m 1280 2560 69632 0 1280
100000 300m 1280 2560 110592 0 1280
400000 300m 1280 2560 315392 0 1280
40000 1000m 1280 2560 114688 0 1280
100000 1000m 1280 2560 225280 0 1280
400000 1000m 1280 2560 778240 0 1280
40000 2000m 1280 2560 184320 0 1280
100000 2000m 1280 2560 393216 0 1280
400000 2000m 1280 2560 1445888 0 1280
40000 80000m 1280 2560 5369856 0 1280
100000 80000m 1280 2560 13357056 0 1280
400000 80000m 1280 2560 53305344 0 1280
40000 120000m 1280 2560 8028160 0 1280
100000 120000m 1280 2560 20004864 0 1280
400000 120000m 1280 2560 79900672 0 1280
Original file line number Diff line number Diff line change
@@ -1,21 +1 @@
{%- macro generate_wred_profiles() %}
"WRED_PROFILE": {
"AZURE_LOSSLESS" : {
"wred_green_enable" : "true",
"wred_yellow_enable" : "true",
"wred_red_enable" : "true",
"ecn" : "ecn_all",
"green_max_threshold" : "2097152",
"green_min_threshold" : "250000",
"yellow_max_threshold" : "2097152",
"yellow_min_threshold" : "1048576",
"red_max_threshold" : "2097152",
"red_min_threshold" : "1048576",
"green_drop_probability" : "5",
"yellow_drop_probability": "5",
"red_drop_probability" : "5"
}
},
{%- endmacro %}

{%- include 'qos_config.j2' %}
Original file line number Diff line number Diff line change
@@ -1,65 +1,37 @@
{%- set default_cable = '5m' %}

{%- macro generate_port_lists(PORT_ALL) %}
{# Generate list of ports #}
{%- for port_idx in range(0,192,4) %}
{%- if PORT_ALL.append("Ethernet%d" % (port_idx)) %}{%- endif %}
{%- endfor %}
{%- endmacro %}

{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_lossless_pool": {
"size": "3220805000",
"type": "both",
"mode": "dynamic",
"xoff": "2102272"
}
},
"BUFFER_PROFILE": {
"ingress_lossless_profile": {
"pool":"ingress_lossless_pool",
"size":"1280",
"dynamic_th":"-2",
"xon_offset":"2560",
"xon":"0",
"xoff":"66048"
},
"ingress_lossy_profile": {
"pool":"ingress_lossless_pool",
"size":"0",
"xon_offset":"0",
"static_th":"30535680"
},
"egress_lossless_profile": {
"pool":"ingress_lossless_pool",
"size":"0",
"static_th":"33030144"
},
"egress_lossy_profile": {
"pool":"ingress_lossless_pool",
"size":"0",
"dynamic_th":"-1"
}
},
{%- endmacro %}

{%- macro generate_queue_buffers(port_names) %}
"BUFFER_QUEUE": {
{% for port in port_names.split(',') %}
"{{ port }}|3-4": {
"profile" : "ingress_lossless_profile"
},
{% endfor %}
{% for port in port_names.split(',') %}
"{{ port }}|0-2": {
"profile" : "egress_lossy_profile"
},
{% endfor %}
{% for port in port_names.split(',') %}
"{{ port }}|5-6": {
"profile" : "egress_lossy_profile"
}{% if not loop.last %},{% endif %}
{% endfor %}
}
{%- endmacro %}
{%- set default_cable = '300m' %}

{%- macro generate_port_lists(PORT_ALL) %}
{# Generate list of ports #}
{%- for port_idx in range(0,192,4) %}
{%- if PORT_ALL.append("Ethernet%d" % (port_idx)) %}{%- endif %}
{%- endfor %}
{%- endmacro %}

{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_lossless_pool": {
"size": "6441610000",
"type": "both",
"mode": "dynamic",
"xoff": "11678515"
}
},
"BUFFER_PROFILE": {
"ingress_lossy_profile": {
"pool":"ingress_lossless_pool",
"size":"1280",
"xon_offset": "2560",
"dynamic_th":"0"
},
"egress_lossless_profile": {
"pool":"ingress_lossless_pool",
"size":"0",
"static_th":"33030144"
},
"egress_lossy_profile": {
"pool":"ingress_lossless_pool",
"size":"0",
"dynamic_th":"-1"
}
},
{%- endmacro %}
Original file line number Diff line number Diff line change
@@ -1,23 +1,17 @@
# PG lossless profiles.
# speed cable size xon xoff threshold xon_offset
10000 5m 1280 2560 45506 0 1280
25000 5m 1280 2560 49152 0 1280
40000 5m 1280 2560 49152 0 1280
50000 5m 1280 2560 53248 0 1280
100000 5m 1280 2560 65536 0 1280
200000 5m 1280 2560 90112 0 1280
400000 5m 1280 2560 135168 0 1280
10000 40m 1280 2560 45506 0 1280
25000 40m 1280 2560 49152 0 1280
40000 40m 1280 2560 53248 0 1280
50000 40m 1280 2560 57344 0 1280
100000 40m 1280 2560 69632 0 1280
200000 40m 1280 2560 102400 0 1280
400000 40m 1280 2560 159744 0 1280
10000 300m 1280 2560 49152 0 1280
25000 300m 1280 2560 61440 0 1280
40000 300m 1280 2560 69632 0 1280
50000 300m 1280 2560 77824 0 1280
100000 300m 1280 2560 114688 0 1280
200000 300m 1280 2560 188416 0 1280
400000 300m 1280 2560 331776 0 1280
# PG lossless profiles.
# speed cable size xon xoff threshold xon_offset
40000 300m 1280 2560 69632 0 1280
100000 300m 1280 2560 110592 0 1280
400000 300m 1280 2560 315392 0 1280
40000 1000m 1280 2560 114688 0 1280
100000 1000m 1280 2560 225280 0 1280
400000 1000m 1280 2560 778240 0 1280
40000 2000m 1280 2560 184320 0 1280
100000 2000m 1280 2560 393216 0 1280
400000 2000m 1280 2560 1445888 0 1280
40000 80000m 1280 2560 5369856 0 1280
100000 80000m 1280 2560 13357056 0 1280
400000 80000m 1280 2560 53305344 0 1280
40000 120000m 1280 2560 8028160 0 1280
100000 120000m 1280 2560 20004864 0 1280
400000 120000m 1280 2560 79900672 0 1280
Original file line number Diff line number Diff line change
@@ -1,21 +1 @@
{%- macro generate_wred_profiles() %}
"WRED_PROFILE": {
"AZURE_LOSSLESS" : {
"wred_green_enable" : "true",
"wred_yellow_enable" : "true",
"wred_red_enable" : "true",
"ecn" : "ecn_all",
"green_max_threshold" : "2097152",
"green_min_threshold" : "250000",
"yellow_max_threshold" : "2097152",
"yellow_min_threshold" : "1048576",
"red_max_threshold" : "2097152",
"red_min_threshold" : "1048576",
"green_drop_probability" : "5",
"yellow_drop_probability": "5",
"red_drop_probability" : "5"
}
},
{%- endmacro %}

{%- include 'qos_config.j2' %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{%- set default_topo = 't2' %}
{%- include 'buffers_config.j2' %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{%- set default_cable = '300m' %}

{%- macro generate_port_lists(PORT_ALL) %}
{# Generate list of ports #}
{%- for port_idx in range(0,144,4) %}
{%- if PORT_ALL.append("Ethernet%d" % (port_idx)) %}{%- endif %}
{%- endfor %}
{%- endmacro %}

{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_lossless_pool": {
"size": "6441610000",
"type": "both",
"mode": "dynamic",
"xoff": "11354112"
}
},
"BUFFER_PROFILE": {
"ingress_lossy_profile": {
"pool":"ingress_lossless_pool",
"size":"1280",
"xon_offset": "2560",
"dynamic_th":"0"
},
"egress_lossless_profile": {
"pool":"ingress_lossless_pool",
"size":"0",
"static_th":"33030144"
},
"egress_lossy_profile": {
"pool":"ingress_lossless_pool",
"size":"0",
"dynamic_th":"-1"
}
},
{%- endmacro %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# PG lossless profiles.
# speed cable size xon xoff threshold xon_offset
40000 300m 1280 2560 69632 0 1280
100000 300m 1280 2560 110592 0 1280
400000 300m 1280 2560 315392 0 1280
40000 1000m 1280 2560 114688 0 1280
100000 1000m 1280 2560 225280 0 1280
400000 1000m 1280 2560 778240 0 1280
40000 2000m 1280 2560 184320 0 1280
100000 2000m 1280 2560 393216 0 1280
400000 2000m 1280 2560 1445888 0 1280
40000 80000m 1280 2560 5369856 0 1280
100000 80000m 1280 2560 13357056 0 1280
400000 80000m 1280 2560 53305344 0 1280
40000 120000m 1280 2560 8028160 0 1280
100000 120000m 1280 2560 20004864 0 1280
400000 120000m 1280 2560 79900672 0 1280
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{%- include 'qos_config.j2' %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{%- set default_topo = 't2' %}
{%- include 'buffers_config.j2' %}
Loading