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

[Celestica][DS3000] add support for ds3000 platform #18705

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
2 changes: 2 additions & 0 deletions device/celestica/x86_64-cel_ds3000-r0/DS3000/buffers.json.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{%- set default_topo = 't1' %}
{%- include 'buffers_config.j2' %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{%- set default_cable = '300m' %}

{%- 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 * 4)) %}{% endif %}
{% endfor %}
{%- endmacro %}

{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_lossless_pool": {
"xoff": "4625920",
"size": "12766208",
"type": "ingress",
"mode": "dynamic"
},
"egress_lossless_pool": {
"size": "12766208",
"type": "egress",
"mode": "static"
},
"egress_lossy_pool": {
"size": "7326924",
"type": "egress",
"mode": "dynamic"
}
},
"BUFFER_PROFILE": {
"ingress_lossy_profile": {
"pool":"[BUFFER_POOL|ingress_lossless_pool]",
"size":"0",
"dynamic_th":"3"
},
"egress_lossless_profile": {
"pool":"[BUFFER_POOL|egress_lossless_pool]",
"size":"0",
"static_th":"12766208"
},
"egress_lossy_profile": {
"pool":"[BUFFER_POOL|egress_lossless_pool]",
"size":"1518",
"dynamic_th":"3"
}
},
{%- endmacro %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{%- set default_cable = '300m' %}

{%- 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 * 4)) %}{% endif %}
{% endfor %}
{%- endmacro %}

{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_lossless_pool": {
"size": "12766208",
"type": "ingress",
"mode": "dynamic"
},
"egress_lossless_pool": {
"size": "12766208",
"type": "egress",
"mode": "static"
},
"egress_lossy_pool": {
"size": "7326924",
"type": "egress",
"mode": "dynamic"
}
},
"BUFFER_PROFILE": {
"ingress_lossy_profile": {
"pool":"[BUFFER_POOL|ingress_lossless_pool]",
"size":"0",
"dynamic_th":"3"
},
"egress_lossless_profile": {
"pool":"[BUFFER_POOL|egress_lossless_pool]",
"size":"0",
"static_th":"12766208"
},
"egress_lossy_profile": {
"pool":"[BUFFER_POOL|egress_lossless_pool]",
"size":"1518",
"dynamic_th":"3"
}
},
{%- endmacro %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{%- set default_cable = '300m' %}

{%- 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 * 4)) %}{% endif %}
{% endfor %}
{%- endmacro %}

{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_lossless_pool": {
"xoff": "4625920",
"size": "12766208",
"type": "ingress",
"mode": "dynamic"
},
"egress_lossless_pool": {
"size": "12766208",
"type": "egress",
"mode": "static"
},
"egress_lossy_pool": {
"size": "7326924",
"type": "egress",
"mode": "dynamic"
}
},
"BUFFER_PROFILE": {
"ingress_lossy_profile": {
"pool":"[BUFFER_POOL|ingress_lossless_pool]",
"size":"0",
"dynamic_th":"3"
},
"egress_lossless_profile": {
"pool":"[BUFFER_POOL|egress_lossless_pool]",
"size":"0",
"static_th":"12766208"
},
"egress_lossy_profile": {
"pool":"[BUFFER_POOL|egress_lossless_pool]",
"size":"1518",
"dynamic_th":"3"
}
},
{%- endmacro %}
169 changes: 169 additions & 0 deletions device/celestica/x86_64-cel_ds3000-r0/DS3000/hwsku.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
{
"interfaces": {
"Ethernet0": {
"default_brkout_mode": "1x100G",
"autoneg": "off",
"fec": "rs"
},
"Ethernet4": {
"default_brkout_mode": "1x100G",
"autoneg": "off",
"fec": "rs"
},
"Ethernet8": {
"default_brkout_mode": "1x100G",
"autoneg": "off",
"fec": "rs"
},
"Ethernet12": {
"default_brkout_mode": "1x100G",
"autoneg": "off",
"fec": "rs"
},
"Ethernet16": {
"default_brkout_mode": "1x100G",
"autoneg": "off",
"fec": "rs"
},
"Ethernet20": {
"default_brkout_mode": "1x100G",
"autoneg": "off",
"fec": "rs"
},
"Ethernet24": {
"default_brkout_mode": "1x100G",
"autoneg": "off",
"fec": "rs"
},
"Ethernet28": {
"default_brkout_mode": "1x100G",
"autoneg": "off",
"fec": "rs"
},
"Ethernet32": {
"default_brkout_mode": "1x100G",
"autoneg": "off",
"fec": "rs"
},
"Ethernet36": {
"default_brkout_mode": "1x100G",
"autoneg": "off",
"fec": "rs"
},
"Ethernet40": {
"default_brkout_mode": "1x100G",
"autoneg": "off",
"fec": "rs"
},
"Ethernet44": {
"default_brkout_mode": "1x100G",
"autoneg": "off",
"fec": "rs"
},
"Ethernet48": {
"default_brkout_mode": "1x100G",
"autoneg": "off",
"fec": "rs"
},
"Ethernet52": {
"default_brkout_mode": "1x100G",
"autoneg": "off",
"fec": "rs"
},
"Ethernet56": {
"default_brkout_mode": "1x100G",
"autoneg": "off",
"fec": "rs"
},
"Ethernet60": {
"default_brkout_mode": "1x100G",
"autoneg": "off",
"fec": "rs"
},
"Ethernet64": {
"default_brkout_mode": "1x100G",
"autoneg": "off",
"fec": "rs"
},
"Ethernet68": {
"default_brkout_mode": "1x100G",
"autoneg": "off",
"fec": "rs"
},
"Ethernet72": {
"default_brkout_mode": "1x100G",
"autoneg": "off",
"fec": "rs"
},
"Ethernet76": {
"default_brkout_mode": "1x100G",
"autoneg": "off",
"fec": "rs"
},
"Ethernet80": {
"default_brkout_mode": "1x100G",
"autoneg": "off",
"fec": "rs"
},
"Ethernet84": {
"default_brkout_mode": "1x100G",
"autoneg": "off",
"fec": "rs"
},
"Ethernet88": {
"default_brkout_mode": "1x100G",
"autoneg": "off",
"fec": "rs"
},
"Ethernet92": {
"default_brkout_mode": "1x100G",
"autoneg": "off",
"fec": "rs"
},
"Ethernet96": {
"default_brkout_mode": "1x100G",
"autoneg": "off",
"fec": "rs"
},
"Ethernet100": {
"default_brkout_mode": "1x100G",
"autoneg": "off",
"fec": "rs"
},
"Ethernet104": {
"default_brkout_mode": "1x100G",
"autoneg": "off",
"fec": "rs"
},
"Ethernet108": {
"default_brkout_mode": "1x100G",
"autoneg": "off",
"fec": "rs"
},
"Ethernet112": {
"default_brkout_mode": "1x100G",
"autoneg": "off",
"fec": "rs"
},
"Ethernet116": {
"default_brkout_mode": "1x100G",
"autoneg": "off",
"fec": "rs"
},
"Ethernet120": {
"default_brkout_mode": "1x100G",
"autoneg": "off",
"fec": "rs"
},
"Ethernet124": {
"default_brkout_mode": "1x100G",
"autoneg": "off",
"fec": "rs"
},
"Ethernet128": {
"default_brkout_mode": "1x10G",
"autoneg": "off",
"fec": "none"
}
}
}
3 changes: 3 additions & 0 deletions device/celestica/x86_64-cel_ds3000-r0/DS3000/l2/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
l2_mem_entries=139264
l3_mem_entries=8192
l3_alpm_enable=0
3 changes: 3 additions & 0 deletions device/celestica/x86_64-cel_ds3000-r0/DS3000/l3/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
l2_mem_entries=40000
l3_mem_entries=40000
l3_alpm_enable=2
17 changes: 17 additions & 0 deletions device/celestica/x86_64-cel_ds3000-r0/DS3000/pg_profile_lookup.ini
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
10000 5m 56368 18432 55120 -3 2496
25000 5m 56368 18432 55120 -3 2496
40000 5m 56368 18432 55120 -3 2496
50000 5m 56368 18432 55120 -3 2496
100000 5m 56368 18432 55120 -3 2496
10000 40m 56368 18432 55120 -3 2496
25000 40m 56368 18432 55120 -3 2496
40000 40m 56368 18432 55120 -3 2496
50000 40m 56368 18432 55120 -3 2496
100000 40m 56368 18432 55120 -3 2496
10000 300m 56368 18432 55120 -3 2496
25000 300m 56368 18432 55120 -3 2496
40000 300m 56368 18432 55120 -3 2496
50000 300m 56368 18432 55120 -3 2496
100000 300m 56368 18432 55120 -3 2496
26 changes: 26 additions & 0 deletions device/celestica/x86_64-cel_ds3000-r0/DS3000/platform-def.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"fec-mode": {
"Ethernet0-127": {
"1": {
"10000": [ "none", "fc" ],
"25000": [ "none", "fc" ]
},
"2": {
"20000": [ "none", "fc" ],
"50000": [ "none", "rs" ]
},
"4": {
"40000": [ "none", "fc" ],
"100000": [ "none", "rs" ]
}
}
},
"native-port-supported-speeds": {
"Ethernet0-127": {
"4": ["100000","40000"]
},
"Ethernet128-128": {
"1": ["100000","1000"]
}
}
}
Loading
Loading