forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request sonic-net#62 from SONIC-DEV/201807
201807
- Loading branch information
Showing
169 changed files
with
20,265 additions
and
4,788 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
device/accton/x86_64-accton_as7116_54x-r0/Accton-AS7116-54X/buffers.json.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{%- set default_topo = 't0' %} | ||
{%- include 'buffers_config.j2' %} |
72 changes: 72 additions & 0 deletions
72
device/accton/x86_64-accton_as7116_54x-r0/Accton-AS7116-54X/buffers_defaults_t0.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
{% 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, 48) %} | ||
{%- if PORT_ALL.append("Ethernet%d" % (port_idx)) %}{%- endif %} | ||
{%- endfor %} | ||
{%- for port_idx in range(48, 54) %} | ||
{%- if PORT_ALL.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":"[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_lossy_profile": { | ||
"pool":"[BUFFER_POOL|egress_lossy_pool]", | ||
"size":"3584", | ||
"dynamic_th":"-4" | ||
} | ||
}, | ||
{%- endmacro %} | ||
|
||
{# the typo of generate_pg_profils dued to buffers_config.j2 #} | ||
{# Default, we do not bind any buffer profiles. #} | ||
{%- macro generate_pg_profils(port_names) %} | ||
"BUFFER_PG": { | ||
} | ||
{%- endmacro %} | ||
|
||
{# Default, we do not bind any buffer profiles. #} | ||
{%- macro generate_queue_buffers(port_names) %} | ||
"BUFFER_QUEUE": { | ||
} | ||
{%- endmacro %} |
72 changes: 72 additions & 0 deletions
72
device/accton/x86_64-accton_as7116_54x-r0/Accton-AS7116-54X/buffers_defaults_t1.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
{% 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, 48) %} | ||
{%- if PORT_ALL.append("Ethernet%d" % (port_idx)) %}{%- endif %} | ||
{%- endfor %} | ||
{%- for port_idx in range(48, 54) %} | ||
{%- if PORT_ALL.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":"[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_lossy_profile": { | ||
"pool":"[BUFFER_POOL|egress_lossy_pool]", | ||
"size":"3584", | ||
"dynamic_th":"-4" | ||
} | ||
}, | ||
{%- endmacro %} | ||
|
||
{# the typo of generate_pg_profils dued to buffers_config.j2 #} | ||
{# Default, we do not bind any buffer profiles. #} | ||
{%- macro generate_pg_profils(port_names) %} | ||
"BUFFER_PG": { | ||
} | ||
{%- endmacro %} | ||
|
||
{# Default, we do not bind any buffer profiles. #} | ||
{%- macro generate_queue_buffers(port_names) %} | ||
"BUFFER_QUEUE": { | ||
} | ||
{%- endmacro %} |
17 changes: 17 additions & 0 deletions
17
device/accton/x86_64-accton_as7116_54x-r0/Accton-AS7116-54X/pg_profile_lookup.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.