-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[device/accton] Platform2.0 API Implementation for accton as7116-54x (#…
…3622) Implement Component platform2.0 API for accton as7116-54x platform
- Loading branch information
1 parent
96fffd8
commit b2e15f2
Showing
37 changed files
with
2,710 additions
and
865 deletions.
There are no files selected for viewing
File renamed without changes.
142 changes: 71 additions & 71 deletions
142
.../Accton-AS7116-54X/buffers_defaults_t0.j2 → ...cton-AS7116-54X-R0/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 |
---|---|---|
@@ -1,72 +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": "static" | ||
}, | ||
"ingress_lossy_pool": { | ||
"size": "{{ ingress_lossy_pool_size }}", | ||
"type": "ingress", | ||
"mode": "dynamic" | ||
}, | ||
"egress_lossless_pool": { | ||
"size": "{{ egress_lossless_pool_size }}", | ||
"type": "egress", | ||
"mode": "static" | ||
}, | ||
"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": { | ||
} | ||
{% 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": "static" | ||
}, | ||
"ingress_lossy_pool": { | ||
"size": "{{ ingress_lossy_pool_size }}", | ||
"type": "ingress", | ||
"mode": "dynamic" | ||
}, | ||
"egress_lossless_pool": { | ||
"size": "{{ egress_lossless_pool_size }}", | ||
"type": "egress", | ||
"mode": "static" | ||
}, | ||
"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 %} |
142 changes: 71 additions & 71 deletions
142
.../Accton-AS7116-54X/buffers_defaults_t1.j2 → ...cton-AS7116-54X-R0/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 |
---|---|---|
@@ -1,72 +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": "static" | ||
}, | ||
"ingress_lossy_pool": { | ||
"size": "{{ ingress_lossy_pool_size }}", | ||
"type": "ingress", | ||
"mode": "dynamic" | ||
}, | ||
"egress_lossless_pool": { | ||
"size": "{{ egress_lossless_pool_size }}", | ||
"type": "egress", | ||
"mode": "static" | ||
}, | ||
"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": { | ||
} | ||
{% 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": "static" | ||
}, | ||
"ingress_lossy_pool": { | ||
"size": "{{ ingress_lossy_pool_size }}", | ||
"type": "ingress", | ||
"mode": "dynamic" | ||
}, | ||
"egress_lossless_pool": { | ||
"size": "{{ egress_lossless_pool_size }}", | ||
"type": "egress", | ||
"mode": "static" | ||
}, | ||
"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 %} |
Binary file added
BIN
+748 Bytes
device/accton/x86_64-accton_as7116_54x-r0/Accton-AS7116-54X-R0/led.bin
Binary file not shown.
Oops, something went wrong.