Skip to content

Commit

Permalink
update innovium hwsku files(qos profile)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanly-Cameo committed Oct 26, 2021
1 parent d796c01 commit 05e8e44
Show file tree
Hide file tree
Showing 36 changed files with 838 additions and 542 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@
"type": "egress",
"mode": "dynamic",
"xoff": "0"
},
"egress_lossless_pool": {
"size": "66092800",
"type": "egress"
}
},
"BUFFER_PROFILE": {
Expand All @@ -94,7 +98,7 @@
"xoff":"38816",
"size":"1518",
"dynamic_th":"1",
"xon_offset":"13440"
"xon_offset":"9408"
},
"egress_lossless_profile": {
"pool":"[BUFFER_POOL|ingress_lossless_pool]",
Expand All @@ -113,16 +117,29 @@
}
},
"BUFFER_PG": {
"{{ port_names }}|0-2": {
"profile" : "[BUFFER_PROFILE|ingress_lossy_profile]"
},
"{{ port_names }}|3-4": {
"profile" : "[BUFFER_PROFILE|ingress_lossless_profile]"
},
"{{ port_names }}|5-7": {
"profile" : "[BUFFER_PROFILE|ingress_lossy_profile]"
}
{% for port in port_names_list %}
"{{ port }}|3-4": {
"profile" : "[BUFFER_PROFILE|ingress_lossless_profile]"
},
{% endfor %}
{% for port in port_names_list %}
"{{ port }}|0": {
"profile" : "[BUFFER_PROFILE|ingress_lossy_profile]"
},
{% endfor %}
{% for port in port_names_list %}
"{{ port }}|1-2": {
"profile" : "[BUFFER_PROFILE|ingress_lossy_profile]"
},
{% endfor %}
{% for port in port_names_list %}
"{{ port }}|5-7": {
"profile" : "[BUFFER_PROFILE|ingress_lossy_profile]"
}{% if not loop.last %},{% endif %}

{% endfor %}
},

"BUFFER_QUEUE": {
{% for port in port_names_list %}
"{{ port }}|3-4": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,17 @@
}
},
"BUFFER_PG": {
"{{ port_names }}|0-7": {
{% for port in port_names_list %}
"{{ port }}|0-7": {
"profile" : "[BUFFER_PROFILE|ingress_lossy_profile]"
}
}{% if not loop.last %},{% endif %}
{% endfor %}
},
"BUFFER_QUEUE": {
"{{ port_names }}|0-7": {
{% for port in port_names_list %}
"{{ port }}|0-7": {
"profile" : "[BUFFER_PROFILE|egress_lossy_profile]"
}
}{% if not loop.last %},{% endif %}
{% endfor %}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@
"type": "egress",
"mode": "dynamic",
"xoff": "0"
},
"egress_lossless_pool": {
"size": "66092800",
"type": "egress"
}
},
"BUFFER_PROFILE": {
Expand All @@ -94,7 +98,7 @@
"xoff":"38816",
"size":"1518",
"dynamic_th":"1",
"xon_offset":"13440"
"xon_offset":"9408"
},
"egress_lossless_profile": {
"pool":"[BUFFER_POOL|ingress_lossless_pool]",
Expand All @@ -113,15 +117,27 @@
}
},
"BUFFER_PG": {
"{{ port_names }}|0-2": {
"profile" : "[BUFFER_PROFILE|ingress_lossy_profile]"
},
"{{ port_names }}|3-4": {
"profile" : "[BUFFER_PROFILE|ingress_lossless_profile]"
},
"{{ port_names }}|5-7": {
"profile" : "[BUFFER_PROFILE|ingress_lossy_profile]"
}
{% for port in port_names_list %}
"{{ port }}|3-4": {
"profile" : "[BUFFER_PROFILE|ingress_lossless_profile]"
},
{% endfor %}
{% for port in port_names_list %}
"{{ port }}|0": {
"profile" : "[BUFFER_PROFILE|ingress_lossy_profile]"
},
{% endfor %}
{% for port in port_names_list %}
"{{ port }}|1-2": {
"profile" : "[BUFFER_PROFILE|ingress_lossy_profile]"
},
{% endfor %}
{% for port in port_names_list %}
"{{ port }}|5-7": {
"profile" : "[BUFFER_PROFILE|ingress_lossy_profile]"
}{% if not loop.last %},{% endif %}

{% endfor %}
},
"BUFFER_QUEUE": {
{% for port in port_names_list %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ nodes:
- auto_create: "no"
multi_interface: "yes"
buffer_management_mode: "api_driven"
wred_cr_ip_proto_list: "17"
cr_assignment_mode: "1"
max_lossless_tc: "2"
wred_cr_ip_proto_list: "17"
ilpm_enable: "1"
forward_profile: "IFCS_FORWARD_PROFILE_ID_PROFILE_E"
mac_clk: "1340"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ device_id: 0x1b58
# Hardware constraint information
hardware:
num_ibs: 6
ib_active: 0,1,2,3,4,5

ports_per_ib: 32, 32, 32, 32, 20, 20
recirc_port_num: 32, 32, 32, 32, 32, 32
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ device_id: 0x1b58
# Hardware constraint information
hardware:
num_ibs: 6
ib_active: 0,1,2,3,4,5

ports_per_ib: 32, 32, 32, 32, 20, 20
recirc_port_num: 32, 32, 32, 32, 32, 32
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
# PG lossless profiles.
# speed cable size xon xoff threshold xon_offset
25000 5m 1518 0 15680 1 13440
50000 5m 1518 0 21248 1 13440
100000 5m 1518 0 34624 1 13440
400000 5m 1518 0 117536 1 13440
25000 40m 1518 0 16928 1 13440
50000 40m 1518 0 23392 1 13440
100000 40m 1518 0 38816 1 13440
400000 40m 1518 0 135520 1 13440
25000 100m 1518 0 18848 1 13440
50000 100m 1518 0 27264 1 13440
100000 100m 1518 0 46496 1 13440
400000 100m 1518 0 166688 1 13440
25000 300m 1518 0 25184 1 13440
50000 300m 1518 0 40128 1 13440
100000 300m 1518 0 72384 1 13440
400000 300m 1518 0 268640 1 13440
25000 5m 1518 0 15680 1 9408
50000 5m 1518 0 21248 1 9408
100000 5m 1518 0 34624 1 9408
200000 5m 1518 0 62368 1 9408
400000 5m 1518 0 117536 1 9408
25000 40m 1518 0 16928 1 9408
50000 40m 1518 0 23392 1 9408
100000 40m 1518 0 38816 1 9408
200000 40m 1518 0 71904 1 9408
400000 40m 1518 0 135520 1 9408
25000 100m 1518 0 18848 1 9408
50000 100m 1518 0 27264 1 9408
100000 100m 1518 0 46496 1 9408
200000 100m 1518 0 87168 1 9408
400000 100m 1518 0 166688 1 9408
25000 300m 1518 0 25184 1 9408
50000 300m 1518 0 40128 1 9408
100000 300m 1518 0 72384 1 9408
200000 300m 1518 0 138112 1 9408
400000 300m 1518 0 268640 1 9408
142 changes: 77 additions & 65 deletions device/cameo/x86_64-cameo_esc600_128q-r0/esc600-128q/qos.json.j2
Original file line number Diff line number Diff line change
Expand Up @@ -32,70 +32,70 @@
},
"DSCP_TO_TC_MAP": {
"AZURE": {
"0":"0",
"1":"0",
"2":"0",
"3":"3",
"4":"4",
"5":"0",
"6":"0",
"7":"0",
"8":"1",
"9":"0",
"10":"0",
"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"
"0" : "1",
"1" : "1",
"2" : "1",
"3" : "3",
"4" : "4",
"5" : "2",
"6" : "1",
"7" : "1",
"8" : "0",
"9" : "1",
"10": "1",
"11": "1",
"12": "1",
"13": "1",
"14": "1",
"15": "1",
"16": "1",
"17": "1",
"18": "1",
"19": "1",
"20": "1",
"21": "1",
"22": "1",
"23": "1",
"24": "1",
"25": "1",
"26": "1",
"27": "1",
"28": "1",
"29": "1",
"30": "1",
"31": "1",
"32": "1",
"33": "1",
"34": "1",
"35": "1",
"36": "1",
"37": "1",
"38": "1",
"39": "1",
"40": "1",
"41": "1",
"42": "1",
"43": "1",
"44": "1",
"45": "1",
"46": "5",
"47": "1",
"48": "6",
"49": "1",
"50": "1",
"51": "1",
"52": "1",
"53": "1",
"54": "1",
"55": "1",
"56": "1",
"57": "1",
"58": "1",
"59": "1",
"60": "1",
"61": "1",
"62": "1",
"63": "1"
}
},
"PORT_QOS_MAP": {
Expand All @@ -111,7 +111,19 @@
},
"WRED_PROFILE": {
"AZURE_LOSSLESS" : {
"red_min_threshold":"50000"
"wred_green_enable" : "true",
"wred_yellow_enable" : "true",
"wred_red_enable" : "true",
"ecn" : "ecn_all",
"green_max_threshold" : "2097152",
"green_min_threshold" : "1048576",
"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"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"0": "0",
"1": "0",
"2": "0",
"3": "3",
"4": "4",
"3": "1",
"4": "2",
"5": "0",
"6": "0",
"7": "0"
Expand Down Expand Up @@ -99,11 +99,14 @@
}
},
"PORT_QOS_MAP": {
"{{ port_names }}": {
{% for port in port_names_list %}
"{{ port }}": {
"tc_to_pg_map": "[TC_TO_PRIORITY_GROUP_MAP|AZURE]",
"tc_to_queue_map": "[TC_TO_QUEUE_MAP|AZURE]",
"dscp_to_tc_map": "[DSCP_TO_TC_MAP|AZURE]"
}
}{% if not loop.last %},{% endif %}

{% endfor %}
},
"SCHEDULER": {
"scheduler.7": {
Expand Down
Loading

0 comments on commit 05e8e44

Please sign in to comment.