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

support clounix asic for pegatron fn8656 product #11573

Open
wants to merge 1 commit into
base: 202012
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
1 change: 1 addition & 0 deletions device/pegatron/x86_64-pegatron_fn8656_bnf-r0/default_sku
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fn8656-bnf l2
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{%- set default_topo = 't0' %}
{%- include 'buffers_config.j2' %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{% set default_cable = '5m' %}
{% set ingress_lossless_pool_size = '20971328' %}
{% set ingress_lossy_pool_size = '20971328' %}
{% set egress_lossless_pool_size = '20971328' %}
{% set egress_lossy_pool_size = '20971328' %}

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

{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_lossless_pool": {
"size": "{{ ingress_lossless_pool_size }}",
"type": "ingress",
"mode": "static"
},
"ingress_lossy_pool": {
"size": "{{ ingress_lossy_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]",
"xon":"78400",
"xoff":"132160",
"size":"3584",
"static_th":"82880"
},
"ingress_lossy_profile": {
"pool":"[BUFFER_POOL|ingress_lossy_pool]",
"size":"3584",
"dynamic_th":"-1"
},
"egress_lossless_profile": {
"pool":"[BUFFER_POOL|egress_lossless_pool]",
"size":"0",
"static_th":"{{ egress_lossless_pool_size }}"
},
"egress_lossy_profile": {
"pool":"[BUFFER_POOL|egress_lossy_pool]",
"size":"3584",
"dynamic_th":"-4"
}
},
{%- endmacro %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{% set default_cable = '5m' %}
{% set ingress_lossless_pool_size = '20971328' %}
{% set ingress_lossy_pool_size = '20971328' %}
{% set egress_lossless_pool_size = '20971328' %}
{% set egress_lossy_pool_size = '20971328' %}

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

{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_lossless_pool": {
"size": "{{ ingress_lossless_pool_size }}",
"type": "ingress",
"mode": "static"
},
"ingress_lossy_pool": {
"size": "{{ ingress_lossy_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]",
"xon":"78400",
"xoff":"132160",
"size":"3584",
"static_th":"82880"
},
"ingress_lossy_profile": {
"pool":"[BUFFER_POOL|ingress_lossy_pool]",
"size":"3584",
"dynamic_th":"-1"
},
"egress_lossless_profile": {
"pool":"[BUFFER_POOL|egress_lossless_pool]",
"size":"0",
"static_th":"{{ egress_lossless_pool_size }}"
},
"egress_lossy_profile": {
"pool":"[BUFFER_POOL|egress_lossy_pool]",
"size":"3584",
"dynamic_th":"-4"
}
},
{%- endmacro %}

Large diffs are not rendered by default.

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# PG lossless profiles.
# speed cable size xon xoff threshold
10000 5m 3584 32256 59136 36736
25000 5m 3584 41216 68096 45696
40000 5m 3584 47488 74368 51968
50000 5m 3584 52864 79744 57344
100000 5m 3584 78400 132160 82880
10000 40m 3584 32256 59136 36736
25000 40m 3584 41216 68096 45696
40000 40m 3584 47488 74368 51968
50000 40m 3584 52864 79744 57344
100000 40m 3584 78400 132160 82880
10000 300m 3584 32256 65856 36736
25000 300m 3584 41216 84672 45696
40000 300m 3584 47488 101024 51968
50000 300m 3584 52864 113120 57344
100000 300m 3584 78400 198688 82880
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# name lanes alias speed index mtu fec
Ethernet0 100,101 Ethernet0 100000 0 9100 rs
Ethernet4 108,109 Ethernet4 100000 1 9100 rs
Ethernet8 96,97 Ethernet8 100000 2 9100 rs
Ethernet12 104,105 Ethernet12 100000 3 9100 rs
Ethernet16 116,117 Ethernet16 100000 4 9100 rs
Ethernet20 124,125 Ethernet20 100000 5 9100 rs
Ethernet24 112,113 Ethernet24 100000 6 9100 rs
Ethernet28 120,121 Ethernet28 100000 7 9100 rs
Ethernet32 128,129 Ethernet32 100000 8 9100 rs
Ethernet36 136,137 Ethernet36 100000 9 9100 rs
Ethernet40 132,133 Ethernet40 100000 10 9100 rs
Ethernet44 140,141 Ethernet44 100000 11 9100 rs
Ethernet48 144,145 Ethernet48 100000 12 9100 rs
Ethernet52 152,153 Ethernet52 100000 13 9100 rs
Ethernet56 148,149 Ethernet56 100000 14 9100 rs
Ethernet60 156,157 Ethernet60 100000 15 9100 rs
Ethernet64 36,37 Ethernet64 100000 16 9100 rs
Ethernet68 44,45 Ethernet68 100000 17 9100 rs
Ethernet72 32,33 Ethernet72 100000 18 9100 rs
Ethernet76 40,41 Ethernet76 100000 19 9100 rs
Ethernet80 52,53 Ethernet80 100000 20 9100 rs
Ethernet84 60,61 Ethernet84 100000 21 9100 rs
Ethernet88 48,49 Ethernet88 100000 22 9100 rs
Ethernet92 56,57 Ethernet92 100000 23 9100 rs
Ethernet96 64,65 Ethernet96 100000 24 9100 rs
Ethernet100 72,73 Ethernet100 100000 25 9100 rs
Ethernet104 68,69 Ethernet104 100000 26 9100 rs
Ethernet108 76,77 Ethernet108 100000 27 9100 rs
Ethernet112 80,81 Ethernet112 100000 28 9100 rs
Ethernet116 88,89 Ethernet116 100000 29 9100 rs
Ethernet120 84,85 Ethernet120 100000 30 9100 rs
Ethernet124 92,93 Ethernet124 100000 31 9100 rs
Ethernet128 228,229 Ethernet128 100000 32 9100 rs
Ethernet132 236,237 Ethernet132 100000 33 9100 rs
Ethernet136 224,225 Ethernet136 100000 34 9100 rs
Ethernet140 232,233 Ethernet140 100000 35 9100 rs
Ethernet144 244,245 Ethernet144 100000 36 9100 rs
Ethernet148 252,253 Ethernet148 100000 37 9100 rs
Ethernet152 240,241 Ethernet152 100000 38 9100 rs
Ethernet156 248,249 Ethernet156 100000 39 9100 rs
Ethernet160 0,1 Ethernet160 100000 40 9100 rs
Ethernet164 8,9 Ethernet168 100000 41 9100 rs
Ethernet168 4,5 Ethernet164 100000 42 9100 rs
Ethernet172 12,13 Ethernet172 100000 43 9100 rs
Ethernet176 16,17 Ethernet176 100000 44 9100 rs
Ethernet180 24,25 Ethernet180 100000 45 9100 rs
Ethernet184 20,21 Ethernet184 100000 46 9100 rs
Ethernet188 28,29 Ethernet188 100000 47 9100 rs
Ethernet192 160,161,162,163,164,165,166,167 Ethernet192 400000 48 9100 rs
Ethernet200 168,169,170,171,172,173,174,175 Ethernet200 400000 49 9100 rs
Ethernet208 176,177,178,179,180,181,182,183 Ethernet208 400000 50 9100 rs
Ethernet216 184,185,186,187,188,189,190,191 Ethernet216 400000 51 9100 rs
Ethernet224 192,193,194,195,196,197,198,199 Ethernet224 400000 52 9100 rs
Ethernet232 200,201,202,203,204,205,206,207 Ethernet232 400000 53 9100 rs
Ethernet240 208,209,210,211,212,213,214,215 Ethernet240 400000 54 9100 rs
Ethernet248 216,217,218,219,220,221,222,223 Ethernet248 400000 55 9100 rs
Loading