Skip to content
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

[Mellanox] Add a new SKU Mellanox-SN4600C-D112C8 #4833

Merged
merged 3 commits into from
Jul 8, 2020
Merged
Show file tree
Hide file tree
Changes from all 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
@@ -0,0 +1,98 @@
{% set default_cable = '5m' %}
{% set ingress_lossless_pool_size = '57499648' %}
{% set egress_lossless_pool_size = '60817392' %}
{% set egress_lossy_pool_size = '57499648' %}

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

{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_lossless_pool": {
"size": "{{ ingress_lossless_pool_size }}",
"type": "ingress",
"mode": "dynamic"
},
"egress_lossless_pool": {
"size": "{{ egress_lossless_pool_size }}",
"type": "egress",
"mode": "dynamic"
},
"egress_lossy_pool": {
"size": "{{ egress_lossy_pool_size }}",
"type": "egress",
"mode": "dynamic"
}
},
"BUFFER_PROFILE": {
"ingress_lossless_profile": {
"pool":"[BUFFER_POOL|ingress_lossless_pool]",
"size":"0",
"dynamic_th":"7"
},
"ingress_lossy_profile": {
"pool":"[BUFFER_POOL|ingress_lossy_pool]",
"size":"0",
"dynamic_th":"3"
},
"egress_lossless_profile": {
"pool":"[BUFFER_POOL|egress_lossless_pool]",
"size":"0",
"dynamic_th":"7"
},
"egress_lossy_profile": {
"pool":"[BUFFER_POOL|egress_lossy_pool]",
"size":"4096",
"dynamic_th":"7"
},
"q_lossy_profile": {
"pool":"[BUFFER_POOL|egress_lossy_pool]",
"size":"0",
"dynamic_th":"3"
}
},
{%- endmacro %}

{%- macro generate_profile_lists(port_names) %}
"BUFFER_PORT_INGRESS_PROFILE_LIST": {
{% for port in port_names.split(',') %}
"{{ port }}": {
"profile_list" : "[BUFFER_PROFILE|ingress_lossless_profile]"
}{% if not loop.last %},{% endif %}

{% endfor %}
},
"BUFFER_PORT_EGRESS_PROFILE_LIST": {
{% for port in port_names.split(',') %}
"{{ port }}": {
"profile_list" : "[BUFFER_PROFILE|egress_lossless_profile],[BUFFER_PROFILE|egress_lossy_profile]"
}{% if not loop.last %},{% endif %}

{% endfor %}
}
{%- endmacro %}

{%- macro generate_queue_buffers(port_names) %}
"BUFFER_QUEUE": {
{% for port in port_names.split(',') %}
"{{ port }}|3-4": {
"profile" : "[BUFFER_PROFILE|egress_lossless_profile]"
},
{% endfor %}
{% for port in port_names.split(',') %}
"{{ port }}|0-2": {
"profile" : "[BUFFER_PROFILE|q_lossy_profile]"
},
{% endfor %}
{% for port in port_names.split(',') %}
"{{ port }}|5-6": {
"profile" : "[BUFFER_PROFILE|q_lossy_profile]"
}{% if not loop.last %},{% endif %}

{% endfor %}
}
{%- endmacro %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
{% set default_cable = '5m' %}
{% set ingress_lossless_pool_size = '52363264' %}
{% set egress_lossless_pool_size = '60817392' %}
{% set egress_lossy_pool_size = '52363264' %}

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

{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_lossless_pool": {
"size": "{{ ingress_lossless_pool_size }}",
"type": "ingress",
"mode": "dynamic"
},
"egress_lossless_pool": {
"size": "{{ egress_lossless_pool_size }}",
"type": "egress",
"mode": "dynamic"
},
"egress_lossy_pool": {
"size": "{{ egress_lossy_pool_size }}",
"type": "egress",
"mode": "dynamic"
}
},
"BUFFER_PROFILE": {
"ingress_lossless_profile": {
"pool":"[BUFFER_POOL|ingress_lossless_pool]",
"size":"0",
"dynamic_th":"7"
},
"ingress_lossy_profile": {
"pool":"[BUFFER_POOL|ingress_lossy_pool]",
"size":"0",
"dynamic_th":"3"
},
"egress_lossless_profile": {
"pool":"[BUFFER_POOL|egress_lossless_pool]",
"size":"0",
"dynamic_th":"7"
},
"egress_lossy_profile": {
"pool":"[BUFFER_POOL|egress_lossy_pool]",
"size":"4096",
"dynamic_th":"7"
},
"q_lossy_profile": {
"pool":"[BUFFER_POOL|egress_lossy_pool]",
"size":"0",
"dynamic_th":"3"
}
},
{%- endmacro %}

{%- macro generate_profile_lists(port_names) %}
"BUFFER_PORT_INGRESS_PROFILE_LIST": {
{% for port in port_names.split(',') %}
"{{ port }}": {
"profile_list" : "[BUFFER_PROFILE|ingress_lossless_profile]"
}{% if not loop.last %},{% endif %}

{% endfor %}
},
"BUFFER_PORT_EGRESS_PROFILE_LIST": {
{% for port in port_names.split(',') %}
"{{ port }}": {
"profile_list" : "[BUFFER_PROFILE|egress_lossless_profile],[BUFFER_PROFILE|egress_lossy_profile]"
}{% if not loop.last %},{% endif %}

{% endfor %}
}
{%- endmacro %}

{%- macro generate_queue_buffers(port_names) %}
"BUFFER_QUEUE": {
{% for port in port_names.split(',') %}
"{{ port }}|3-4": {
"profile" : "[BUFFER_PROFILE|egress_lossless_profile]"
},
{% endfor %}
{% for port in port_names.split(',') %}
"{{ port }}|0-2": {
"profile" : "[BUFFER_PROFILE|q_lossy_profile]"
},
{% endfor %}
{% for port in port_names.split(',') %}
"{{ port }}|5-6": {
"profile" : "[BUFFER_PROFILE|q_lossy_profile]"
}{% if not loop.last %},{% endif %}

{% endfor %}
}
{%- endmacro %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
# name lanes alias index speed fec
Ethernet0 0,1 etp1a 1 50000 none
Ethernet2 2,3 etp1b 1 50000 none
Ethernet8 8,9 etp2a 2 50000 none
Ethernet10 10,11 etp2b 2 50000 none
Ethernet16 16,17 etp3a 3 50000 none
Ethernet18 18,19 etp3b 3 50000 none
Ethernet24 24,25,26,27 etp4 4 100000 rs
Ethernet32 32,33 etp5a 5 50000 none
Ethernet34 34,35 etp5b 5 50000 none
Ethernet40 40,41 etp6a 6 50000 none
Ethernet42 42,43 etp6b 6 50000 none
Ethernet48 48,49 etp7a 7 50000 none
Ethernet50 50,51 etp7b 7 50000 none
Ethernet56 56,57,58,59 etp8 8 100000 rs
Ethernet64 64,65 etp9a 9 50000 none
Ethernet66 66,67 etp9b 9 50000 none
Ethernet72 72,73 etp10a 10 50000 none
Ethernet74 74,75 etp10b 10 50000 none
Ethernet80 80,81 etp11a 11 50000 none
Ethernet82 82,83 etp11b 11 50000 none
Ethernet88 88,89,90,91 etp12 12 100000 rs
Ethernet96 96,97 etp13a 13 50000 none
Ethernet98 98,99 etp13b 13 50000 none
Ethernet104 104,105 etp14a 14 50000 none
Ethernet106 106,107 etp14b 14 50000 none
Ethernet112 112,113 etp15a 15 50000 none
Ethernet114 114,115 etp15b 15 50000 none
Ethernet120 120,121,122,123 etp16 16 100000 rs
Ethernet128 128,129 etp17a 17 50000 none
Ethernet130 130,131 etp17b 17 50000 none
Ethernet136 136,137 etp18a 18 50000 none
Ethernet138 138,139 etp18b 18 50000 none
Ethernet144 144,145 etp19a 19 50000 none
Ethernet146 146,147 etp19b 19 50000 none
Ethernet152 152,153,154,155 etp20 20 100000 rs
Ethernet160 160,161 etp21a 21 50000 none
Ethernet162 162,163 etp21b 21 50000 none
Ethernet168 168,169 etp22a 22 50000 none
Ethernet170 170,171 etp22b 22 50000 none
Ethernet176 176,177 etp23a 23 50000 none
Ethernet178 178,179 etp23b 23 50000 none
Ethernet184 184,185,186,187 etp24 24 100000 rs
Ethernet192 192,193,194,195 etp25 25 100000 rs
Ethernet200 200,201,202,203 etp26 26 100000 rs
Ethernet208 208,209 etp27a 27 50000 none
Ethernet210 210,211 etp27b 27 50000 none
Ethernet216 216,217,218,219 etp28 28 100000 rs
Ethernet224 224,225,226,227 etp29 29 100000 rs
Ethernet232 232,233,234,235 etp30 30 100000 rs
Ethernet240 240,241 etp31a 31 50000 none
Ethernet242 242,243 etp31b 31 50000 none
Ethernet248 248,249,250,251 etp32 32 100000 rs
Ethernet256 256,257,258,259 etp33 33 100000 rs
Ethernet264 264,265,266,267 etp34 34 100000 rs
Ethernet272 272,273 etp35a 35 50000 none
Ethernet274 274,275 etp35b 35 50000 none
Ethernet280 280,281,282,283 etp36 36 100000 rs
Ethernet288 288,289,290,291 etp37 37 100000 rs
Ethernet296 296,297,298,299 etp38 38 100000 rs
Ethernet304 304,305 etp39a 39 50000 none
Ethernet306 306,307 etp39b 39 50000 none
Ethernet312 312,313,314,315 etp40 40 100000 rs
Ethernet320 320,321 etp41a 41 50000 none
Ethernet322 322,323 etp41b 41 50000 none
Ethernet328 328,329 etp42a 42 50000 none
Ethernet330 330,331 etp42b 42 50000 none
Ethernet336 336,337 etp43a 43 50000 none
Ethernet338 338,339 etp43b 43 50000 none
Ethernet344 344,345,346,347 etp44 44 100000 rs
Ethernet352 352,353 etp45a 45 50000 none
Ethernet354 354,355 etp45b 45 50000 none
Ethernet360 360,361 etp46a 46 50000 none
Ethernet362 362,363 etp46b 46 50000 none
Ethernet368 368,369 etp47a 47 50000 none
Ethernet370 370,371 etp47b 47 50000 none
Ethernet376 376,377,378,379 etp48 48 100000 rs
Ethernet384 384,385 etp49a 49 50000 none
Ethernet386 386,387 etp49b 49 50000 none
Ethernet392 392,393 etp50a 50 50000 none
Ethernet394 394,395 etp50b 50 50000 none
Ethernet400 400,401 etp51a 51 50000 none
Ethernet402 402,403 etp51b 51 50000 none
Ethernet408 408,409,410,411 etp52 52 100000 rs
Ethernet416 416,417 etp53a 53 50000 none
Ethernet418 418,419 etp53b 53 50000 none
Ethernet424 424,425 etp54a 54 50000 none
Ethernet426 426,427 etp54b 54 50000 none
Ethernet432 432,433 etp55a 55 50000 none
Ethernet434 434,435 etp55b 55 50000 none
Ethernet440 440,441,442,443 etp56 56 100000 rs
Ethernet448 448,449 etp57a 57 50000 none
Ethernet450 450,451 etp57b 57 50000 none
Ethernet456 456,457 etp58a 58 50000 none
Ethernet458 458,459 etp58b 58 50000 none
Ethernet464 464,465 etp59a 59 50000 none
Ethernet466 466,467 etp59b 59 50000 none
Ethernet472 472,473,474,475 etp60 60 100000 rs
Ethernet480 480,481 etp61a 61 50000 none
Ethernet482 482,483 etp61b 61 50000 none
Ethernet488 488,489 etp62a 62 50000 none
Ethernet490 490,491 etp62b 62 50000 none
Ethernet496 496,497 etp63a 63 50000 none
Ethernet498 498,499 etp63b 63 50000 none
Ethernet504 504,505,506,507 etp64 64 100000 rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/sai_4600c_112x50g_8x100g.xml
Loading