Skip to content

Commit

Permalink
[Netberg][Barefoot] Added support for Aurora 710 (#15298)
Browse files Browse the repository at this point in the history
* [202012][platform/barefoot] (#8543)

Why I did it
Pcied running by python 2.

How I did it
dropped python2 support and add python3 support for pcied in file docker-pmon.supervisord.conf.j2

How to verify it
docker exec pmon supervisorctl status

* [Netberg][nba710] Added initial support for Aurora 710

Signed-off-by: Andrew Sapronov <andrew.sapronov@gmail.com>

---------

Signed-off-by: Andrew Sapronov <andrew.sapronov@gmail.com>
Co-authored-by: Kostiantyn Yarovyi <kostiantynx.yarovyi@intel.com>
  • Loading branch information
andrewsapronov and KostiantynYarovyiBf authored Jul 1, 2023
1 parent b4a3711 commit c190a8f
Show file tree
Hide file tree
Showing 45 changed files with 3,951 additions and 9 deletions.
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,86 @@
{% set default_cable = '5m' %}
{% set ingress_lossless_pool_size = '4194304' %}
{% set ingress_lossy_pool_size = '7340032' %}
{% set egress_lossless_pool_size = '16777152' %}
{% set egress_lossy_pool_size = '7340032' %}

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

{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_lossless_pool": {
"size": "{{ ingress_lossless_pool_size }}",
"type": "ingress",
"mode": "dynamic"
},
"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":"ingress_lossless_pool",
"size":"4096",
"dynamic_th":"0",
"xon":"18432",
"xoff":"18432"
},
"ingress_lossy_profile": {
"pool":"ingress_lossy_pool",
"size":"4096",
"dynamic_th":"3"
},
"egress_lossless_profile": {
"pool":"egress_lossless_pool",
"size":"4096",
"dynamic_th":"7",
"xon":"18432",
"xoff":"18432"
},
"egress_lossy_profile": {
"pool":"egress_lossy_pool",
"size":"4096",
"dynamic_th":"3"
},
"q_lossy_profile": {
"pool":"egress_lossy_pool",
"size":"4096",
"dynamic_th":"3"
}
},
{%- endmacro %}

{%- macro generate_queue_buffers(port_names) %}
"BUFFER_QUEUE": {
{% for port in port_names.split(',') %}
"{{ port }}|0-2": {
"profile" : "q_lossy_profile"
},
{% endfor %}
{% for port in port_names.split(',') %}
"{{ port }}|3-4": {
"profile" : "egress_lossless_profile"
}{% if not loop.last %},{% endif %}
{% endfor %}
}
{%- endmacro %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
{% set default_cable = '5m' %}
{% set ingress_lossless_pool_size = '2097152' %}
{% set ingress_lossy_pool_size = '5242880' %}
{% set egress_lossless_pool_size = '16777152' %}
{% set egress_lossy_pool_size = '5242880' %}

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

{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_lossless_pool": {
"size": "{{ ingress_lossless_pool_size }}",
"type": "ingress",
"mode": "dynamic"
},
"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":"ingress_lossless_pool",
"size":"4096",
"dynamic_th":"0",
"xon":"18432",
"xoff":"18432"
},
"ingress_lossy_profile": {
"pool":"ingress_lossy_pool",
"size":"4096",
"dynamic_th":"3"
},
"egress_lossless_profile": {
"pool":"egress_lossless_pool",
"size":"4096",
"dynamic_th":"7",
"xon":"18432",
"xoff":"18432"
},
"egress_lossy_profile": {
"pool":"egress_lossy_pool",
"size":"4096",
"dynamic_th":"3"
},
"q_lossy_profile": {
"pool":"egress_lossy_pool",
"size":"4096",
"dynamic_th":"3"
}
},
{%- endmacro %}

{%- macro generate_queue_buffers(port_names) %}
"BUFFER_QUEUE": {
{% for port in port_names.split(',') %}
"{{ port }}|0-2": {
"profile" : "q_lossy_profile"
},
{% endfor %}
{% for port in port_names.split(',') %}
"{{ port }}|3-4": {
"profile" : "egress_lossless_profile"
}{% if not loop.last %},{% endif %}
{% endfor %}
}
{%- endmacro %}
164 changes: 164 additions & 0 deletions device/netberg/x86_64-netberg_aurora_710-r0/aurora-710/hwsku.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
{
"interfaces": {
"Ethernet0": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet4": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet8": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet12": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet16": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet20": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet24": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet28": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet32": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet36": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet40": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet44": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet48": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet52": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet56": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet60": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet64": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet68": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet72": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet76": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet80": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet84": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet88": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet92": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet96": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet100": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet104": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet108": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet112": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet116": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet120": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
},
"Ethernet124": {
"default_brkout_mode": "1x100G[40G]",
"autoneg": "off",
"fec": "rs"
}
}
}
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 34816 18432 16384 0
25000 5m 34816 18432 16384 0
40000 5m 34816 18432 16384 0
50000 5m 34816 18432 16384 0
100000 5m 36864 18432 18432 0
10000 40m 36864 18432 18432 0
25000 40m 39936 18432 21504 0
40000 40m 41984 18432 23552 0
50000 40m 41984 18432 23552 0
100000 40m 54272 18432 35840 0
10000 300m 49152 18432 30720 0
25000 300m 71680 18432 53248 0
40000 300m 94208 18432 75776 0
50000 300m 94208 18432 75776 0
100000 300m 184320 18432 165888 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# name lanes alias speed autoneg fec index
Ethernet0 0,1,2,3 Ethernet0 100000 0 rs 0
Ethernet4 4,5,6,7 Ethernet4 100000 0 rs 1
Ethernet8 8,9,10,11 Ethernet8 100000 0 rs 2
Ethernet12 12,13,14,15 Ethernet12 100000 0 rs 3
Ethernet16 16,17,18,19 Ethernet16 100000 0 rs 4
Ethernet20 20,21,22,23 Ethernet20 100000 0 rs 5
Ethernet24 24,25,26,27 Ethernet24 100000 0 rs 6
Ethernet28 28,29,30,31 Ethernet28 100000 0 rs 7
Ethernet32 32,33,34,35 Ethernet32 100000 0 rs 8
Ethernet36 36,37,38,39 Ethernet36 100000 0 rs 9
Ethernet40 40,41,42,43 Ethernet40 100000 0 rs 10
Ethernet44 44,45,46,47 Ethernet44 100000 0 rs 11
Ethernet48 48,49,50,51 Ethernet48 100000 0 rs 12
Ethernet52 52,53,54,55 Ethernet52 100000 0 rs 13
Ethernet56 56,57,58,59 Ethernet56 100000 0 rs 14
Ethernet60 60,61,62,63 Ethernet60 100000 0 rs 15
Ethernet64 64,65,66,67 Ethernet64 100000 0 rs 16
Ethernet68 68,69,70,71 Ethernet68 100000 0 rs 17
Ethernet72 72,73,74,75 Ethernet72 100000 0 rs 18
Ethernet76 76,77,78,79 Ethernet76 100000 0 rs 19
Ethernet80 80,81,82,83 Ethernet80 100000 0 rs 20
Ethernet84 84,85,86,87 Ethernet84 100000 0 rs 21
Ethernet88 88,89,90,91 Ethernet88 100000 0 rs 22
Ethernet92 92,93,94,95 Ethernet92 100000 0 rs 23
Ethernet96 96,97,98,99 Ethernet96 100000 0 rs 24
Ethernet100 100,101,102,103 Ethernet100 100000 0 rs 25
Ethernet104 104,105,106,107 Ethernet104 100000 0 rs 26
Ethernet108 108,109,110,111 Ethernet108 100000 0 rs 27
Ethernet112 112,113,114,115 Ethernet112 100000 0 rs 28
Ethernet116 116,117,118,119 Ethernet116 100000 0 rs 29
Ethernet120 120,121,122,123 Ethernet120 100000 0 rs 30
Ethernet124 124,125,126,127 Ethernet124 100000 0 rs 31
Loading

0 comments on commit c190a8f

Please sign in to comment.