Skip to content

Commit

Permalink
Merge pull request #547 from mssonicbld/cherry/msft-202412/21155
Browse files Browse the repository at this point in the history
[action] [PR:21155] Add buffer configs for TH5 C224 and C256 SKUs
  • Loading branch information
r12f authored Jan 24, 2025
2 parents 57859a8 + ce413c1 commit 0701d8a
Show file tree
Hide file tree
Showing 11 changed files with 446 additions and 6 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{%- set default_cable = '0m' %}

{%- include 'buffer_ports.j2' %}

{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_lossy_pool": {
"size": "166607744",
"type": "ingress",
"mode": "dynamic"
},
"egress_lossy_pool": {
"size": "166607744",
"type": "egress",
"mode": "dynamic"
}
},
"BUFFER_PROFILE": {
"ingress_lossy_profile": {
"pool": "ingress_lossy_pool",
"size": "0",
"static_th": "167546528"
},
"egress_lossy_profile": {
"pool": "egress_lossy_pool",
"size": "1778",
"dynamic_th": "1"
}
},
{%- endmacro %}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{%- set default_cable = '0m' %}

{%- include 'buffer_ports.j2' %}

{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_lossy_pool": {
"size": "166607744",
"type": "ingress",
"mode": "dynamic"
},
"egress_lossy_pool": {
"size": "166607744",
"type": "egress",
"mode": "dynamic"
}
},
"BUFFER_PROFILE": {
"ingress_lossy_profile": {
"pool": "ingress_lossy_pool",
"size": "0",
"static_th": "167546528"
},
"egress_lossy_profile": {
"pool": "egress_lossy_pool",
"size": "1778",
"dynamic_th": "1"
}
},
{%- endmacro %}
Original file line number Diff line number Diff line change
@@ -1 +1,143 @@
{%- macro generate_dscp_to_tc_map_per_sku() -%}
"DSCP_TO_TC_MAP": {
"AZURE": {
"0" : "0",
"1" : "1",
"2" : "2",
"3" : "3",
"4" : "4",
"5" : "4",
"6" : "4",
"7" : "0",
"8" : "0",
"9" : "0",
"10": "5",
"11": "0",
"12": "0",
"13": "0",
"14": "0",
"15": "0",
"16": "0",
"17": "0",
"18": "0",
"19": "0",
"20": "0",
"21": "0",
"22": "0",
"23": "0",
"24": "0",
"25": "0",
"26": "0",
"27": "0",
"28": "0",
"29": "0",
"30": "0",
"31": "0",
"32": "0",
"33": "0",
"34": "0",
"35": "0",
"36": "0",
"37": "0",
"38": "0",
"39": "0",
"40": "0",
"41": "0",
"42": "0",
"43": "0",
"44": "0",
"45": "0",
"46": "0",
"47": "0",
"48": "0",
"49": "0",
"50": "0",
"51": "0",
"52": "0",
"53": "0",
"54": "0",
"55": "0",
"56": "0",
"57": "0",
"58": "0",
"59": "0",
"60": "0",
"61": "0",
"62": "0",
"63": "0"
}
},
{%- endmacro -%}

{%- macro generate_tc_to_queue_map_per_sku() -%}
"TC_TO_QUEUE_MAP": {
"AZURE": {
"0": "0",
"1": "1",
"2": "2",
"3": "3",
"4": "4",
"5": "5",
"6": "6",
"7": "7",
"8": "8",
"9": "9"
}
},
{%- endmacro -%}

{%- macro generate_scheduler_per_sku() -%}
"SCHEDULER": {
"scheduler.0": {
"type" : "DWRR",
"weight": "1"
},
"scheduler.1": {
"type" : "DWRR",
"weight": "10"
},
"scheduler.2": {
"type" : "DWRR",
"weight": "20"
},
"scheduler.3": {
"type" : "DWRR",
"weight": "30"
}
},
{%- endmacro -%}

{%- macro generate_single_queue_per_sku(port) -%}
"{{ port }}|0": {
"scheduler": "scheduler.0"
},
"{{ port }}|1": {
"scheduler": "scheduler.1"
},
"{{ port }}|2": {
"scheduler": "scheduler.2"
},
"{{ port }}|3": {
"scheduler": "scheduler.3"
},
"{{ port }}|4": {
"scheduler": "scheduler.1"
},
"{{ port }}|5": {
"scheduler": "scheduler.1"
},
"{{ port }}|6": {
"scheduler": "scheduler.1"
},
"{{ port }}|7": {
"scheduler": "scheduler.1"
},
"{{ port }}|8": {
"scheduler": "scheduler.1"
},
"{{ port }}|9": {
"scheduler": "scheduler.1"
}
{%- endmacro -%}

{%- include 'qos_config.j2' %}
Original file line number Diff line number Diff line change
Expand Up @@ -1848,3 +1848,12 @@ device:
DEVICE_CONFIG:
AUTOLOAD_BOARD_SETTINGS: 0
...
---
device:
0:
TM_THD_CONFIG:
SKIP_BUFFER_RESERVATION: 0
THRESHOLD_MODE: LOSSY
TM_SCHEDULER_CONFIG:
NUM_MC_Q: NUM_MC_Q_2
...

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{%- set default_cable = '0m' %}

{%- include 'buffer_ports.j2' %}

{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_lossy_pool": {
"size": "166607744",
"type": "ingress",
"mode": "dynamic"
},
"egress_lossy_pool": {
"size": "166607744",
"type": "egress",
"mode": "dynamic"
}
},
"BUFFER_PROFILE": {
"ingress_lossy_profile": {
"pool": "ingress_lossy_pool",
"size": "0",
"static_th": "167546528"
},
"egress_lossy_profile": {
"pool": "egress_lossy_pool",
"size": "1778",
"dynamic_th": "1"
}
},
{%- endmacro %}
{%- macro generate_queue_buffers(ports) %}
"BUFFER_QUEUE": {
{% for port in ports.split(',') %}
"{{ port }}|0-9": {
"profile" : "egress_lossy_profile"
}
{%- if not loop.last -%},{% endif %}
{% endfor %}
}
{%- endmacro %}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{%- set default_cable = '0m' %}

{%- include 'buffer_ports.j2' %}

{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_lossy_pool": {
"size": "166607744",
"type": "ingress",
"mode": "dynamic"
},
"egress_lossy_pool": {
"size": "166607744",
"type": "egress",
"mode": "dynamic"
}
},
"BUFFER_PROFILE": {
"ingress_lossy_profile": {
"pool": "ingress_lossy_pool",
"size": "0",
"static_th": "167546528"
},
"egress_lossy_profile": {
"pool": "egress_lossy_pool",
"size": "1778",
"dynamic_th": "1"
}
},
{%- endmacro %}
{%- macro generate_queue_buffers(ports) %}
"BUFFER_QUEUE": {
{% for port in ports.split(',') %}
"{{ port }}|0-9": {
"profile" : "egress_lossy_profile"
}
{%- if not loop.last -%},{% endif %}
{% endfor %}
}
{%- endmacro %}
Loading

0 comments on commit 0701d8a

Please sign in to comment.