-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[Nexthop] NH-5010 Platform Support #24169
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
60068b8
add device dir for nh-5010
roy-nexthop 64b2f7c
add sonic-platform-modules-nexthop support for nh-5010
roy-nexthop 42cb8ad
more nh-5010 device dir changes
roy-nexthop a82f4b9
remove eeprom utils change
roy-nexthop 518596c
additional nh platform support changes
roy-nexthop 4ab385b
macsec property and tap changes
roy-nexthop f10969c
Update adm1266 test to use pd-plugin.json from nh-5010
louis-nexthop 6cbc4bb
use nh_powercycle for nh platforms
roy-nexthop 51e611f
address review comments
roy-nexthop d6910b3
update top level build files
roy-nexthop 863e6e8
remove spi module from pddf json
roy-nexthop e2e4c98
follow-up cleanup after resolving merge conflict
roy-nexthop 6c7f0f3
empty commit to retrigger checks
roy-nexthop File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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/nexthop/x86_64-nexthop_5010-r0/NH-5010-F-O32-C32/BALANCED/buffers.json.j2
This file contains hidden or 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 = 't2' %} | ||
| {%- include 'buffers_config.j2' %} |
53 changes: 53 additions & 0 deletions
53
device/nexthop/x86_64-nexthop_5010-r0/NH-5010-F-O32-C32/BALANCED/buffers_defaults_t2.j2
This file contains hidden or 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,53 @@ | ||
| {%- set default_cable = '300m' %} | ||
|
|
||
| {%- include 'buffer_ports.j2' %} | ||
|
|
||
| {%- set ports2cable = { | ||
| 'torrouter_server' : '300m', | ||
| 'leafrouter_torrouter' : '300m', | ||
| 'spinerouter_leafrouter' : '2000m', | ||
| 'upperspinerouter_spinerouter' : '50m', | ||
| 'upperspinerouter_lowerspinerouter' : '50m', | ||
| 'regionalhub_upperspinerouter': '120000m', | ||
| 'aznghub_upperspinerouter' : '120000m', | ||
| 'regionalhub_spinerouter': '120000m', | ||
| 'aznghub_spinerouter' : '120000m' | ||
| } | ||
| -%} | ||
|
|
||
| {%- macro generate_qos_bypass_port_list(PORT_QOS_BYPASS) %} | ||
| {# Generate list of ports #} | ||
| {%- for port_idx in range(256, 261, 4) %} | ||
| {%- if PORT_QOS_BYPASS.append("Ethernet%d" % (port_idx)) %}{%- endif %} | ||
| {%- endfor %} | ||
| {%- endmacro %} | ||
|
|
||
| {%- macro generate_buffer_pool_and_profiles() %} | ||
| "BUFFER_POOL": { | ||
| "ingress_lossless_pool": { | ||
| "size": "56441610000", | ||
| "type": "both", | ||
| "mode": "dynamic", | ||
| "xoff": "2822080500" | ||
| } | ||
| }, | ||
| "BUFFER_PROFILE": { | ||
| "ingress_lossy_profile": { | ||
| "pool":"ingress_lossless_pool", | ||
| "size":"0", | ||
| "xon_offset": "0", | ||
| "dynamic_th":"0" | ||
| }, | ||
| "egress_lossless_profile": { | ||
| "pool":"ingress_lossless_pool", | ||
| "size":"0", | ||
| "dynamic_th":"-1" | ||
| }, | ||
| "egress_lossy_profile": { | ||
| "pool":"ingress_lossless_pool", | ||
| "size":"0", | ||
| "dynamic_th":"-4" | ||
| } | ||
| }, | ||
| {%- endmacro %} | ||
|
|
||
17 changes: 17 additions & 0 deletions
17
device/nexthop/x86_64-nexthop_5010-r0/NH-5010-F-O32-C32/BALANCED/pg_profile_lookup.ini
This file contains hidden or 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 xon_offset | ||
| 25000 5m 18796 0 612140 0 3556 | ||
| 25000 40m 18796 0 612140 0 3556 | ||
| 25000 300m 18796 0 612140 0 3556 | ||
| 100000 5m 18796 0 612140 0 3556 | ||
| 100000 40m 18796 0 612140 0 3556 | ||
| 100000 300m 18796 0 612140 0 3556 | ||
| 200000 5m 18796 0 612140 0 3556 | ||
| 200000 40m 18796 0 612140 0 3556 | ||
| 200000 300m 18796 0 612140 0 3556 | ||
| 400000 5m 18796 0 612140 0 3556 | ||
| 400000 40m 18796 0 612140 0 3556 | ||
| 400000 300m 18796 0 612140 0 3556 | ||
| 800000 5m 18796 0 612140 0 3556 | ||
| 800000 40m 18796 0 612140 0 3556 | ||
| 800000 300m 18796 0 612140 0 3556 |
12 changes: 12 additions & 0 deletions
12
device/nexthop/x86_64-nexthop_5010-r0/NH-5010-F-O32-C32/BALANCED/qos.json.j2
This file contains hidden or 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,12 @@ | ||
| {%- macro generate_global_dscp_to_tc_map() %} | ||
| {# This is an empty macro since the global DSCP_TO_TC map is not required #} | ||
| {%- endmacro %} | ||
|
|
||
| {%- macro generate_qos_bypass_port_list(PORT_QOS_BYPASS) %} | ||
| {# Generate list of ports #} | ||
| {%- for port_idx in range(256, 261, 4) %} | ||
| {%- if PORT_QOS_BYPASS.append("Ethernet%d" % (port_idx)) %}{%- endif %} | ||
| {%- endfor %} | ||
| {%- endmacro %} | ||
|
|
||
| {%- include 'qos_config.j2' %} |
801 changes: 801 additions & 0 deletions
801
device/nexthop/x86_64-nexthop_5010-r0/NH-5010-F-O32-C32/agera2.bcm
Large diffs are not rendered by default.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
device/nexthop/x86_64-nexthop_5010-r0/NH-5010-F-O32-C32/buffer_ports.j2
This file contains hidden or 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,6 @@ | ||
| {%- macro generate_port_lists(PORT_ALL) %} | ||
| {# Generate list of ports #} | ||
| {%- for port_idx in range(128, 253, 4) %} | ||
| {%- if PORT_ALL.append("Ethernet%d" % (port_idx)) %}{%- endif %} | ||
| {%- endfor %} | ||
| {%- endmacro %} |
2 changes: 2 additions & 0 deletions
2
device/nexthop/x86_64-nexthop_5010-r0/NH-5010-F-O32-C32/buffers.json.j2
This file contains hidden or 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 = 't2' %} | ||
| {%- include 'buffers_config.j2' %} |
52 changes: 52 additions & 0 deletions
52
device/nexthop/x86_64-nexthop_5010-r0/NH-5010-F-O32-C32/buffers_defaults_t2.j2
This file contains hidden or 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,52 @@ | ||
| {%- set default_cable = '300m' %} | ||
|
|
||
| {%- include 'buffer_ports.j2' %} | ||
|
|
||
| {%- macro generate_qos_bypass_port_list(PORT_QOS_BYPASS) %} | ||
| {# Generate list of ports #} | ||
| {%- for port_idx in range(256, 261, 4) %} | ||
| {%- if PORT_QOS_BYPASS.append("Ethernet%d" % (port_idx)) %}{%- endif %} | ||
| {%- endfor %} | ||
| {%- endmacro %} | ||
|
|
||
| {%- macro generate_buffer_pool_and_profiles() %} | ||
| "BUFFER_POOL": { | ||
| "ingress_pool": { | ||
| "size": "56441610000", | ||
| "type": "both", | ||
| "mode": "dynamic" | ||
| } | ||
| }, | ||
| "BUFFER_PROFILE": { | ||
| "ingress_lossy_profile": { | ||
| "pool":"ingress_pool", | ||
| "size":"0", | ||
| "dynamic_th":"3" | ||
| }, | ||
| "egress_lossy_profile": { | ||
| "pool":"ingress_pool", | ||
| "size":"0", | ||
| "dynamic_th":"3" | ||
| } | ||
| }, | ||
| {%- endmacro %} | ||
|
|
||
| {%- macro generate_pg_profils(port_names_active) %} | ||
| "BUFFER_PG": { | ||
| {% for port in port_names_active.split(',') %} | ||
| "{{ port }}|0-7": { | ||
| "profile" : "ingress_lossy_profile" | ||
| }{% if not loop.last %},{% endif %} | ||
| {% endfor %} | ||
| }, | ||
| {%- endmacro %} | ||
|
|
||
| {% macro generate_queue_buffers(port_names_active) %} | ||
| "BUFFER_QUEUE": { | ||
| {% for port in port_names_active.split(',') %} | ||
| "{{ port }}|0-7": { | ||
| "profile" : "egress_lossy_profile" | ||
| }{% if not loop.last %},{% endif %} | ||
| {% endfor %} | ||
| } | ||
| {% endmacro %} |
98 changes: 98 additions & 0 deletions
98
device/nexthop/x86_64-nexthop_5010-r0/NH-5010-F-O32-C32/context_config.json
This file contains hidden or 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,98 @@ | ||
| { | ||
| "CONTEXTS": [ | ||
| { | ||
| "guid": 0, | ||
| "name": "sw0", | ||
| "dbAsic": "ASIC_DB", | ||
| "dbCounters": "COUNTERS_DB", | ||
| "dbFlex": "FLEX_COUNTER_DB", | ||
| "dbState": "STATE_DB", | ||
| "zmq_enable": false, | ||
| "zmq_endpoint": "tcp://127.0.0.1:5555", | ||
| "zmq_ntf_endpoint": "tcp://127.0.0.1:5556", | ||
| "switches": [ | ||
| { | ||
| "index": 0, | ||
| "hwinfo": "" | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "guid": 1, | ||
| "name": "phy", | ||
| "dbAsic": "GB_ASIC_DB", | ||
| "dbCounters": "GB_COUNTERS_DB", | ||
| "dbFlex": "GB_FLEX_COUNTER_DB", | ||
| "dbState": "STATE_DB", | ||
| "zmq_enable": false, | ||
| "zmq_endpoint": "tcp://127.0.0.1:5565", | ||
| "zmq_ntf_endpoint": "tcp://127.0.0.1:5566", | ||
| "switches": [ | ||
| { | ||
| "index": 9, | ||
| "hwinfo": "9" | ||
| }, | ||
| { | ||
| "index": 8, | ||
| "hwinfo": "8" | ||
| }, | ||
| { | ||
| "index": 10, | ||
| "hwinfo": "10" | ||
| }, | ||
| { | ||
| "index": 11, | ||
| "hwinfo": "11" | ||
| }, | ||
| { | ||
| "index": 12, | ||
| "hwinfo": "12" | ||
| }, | ||
| { | ||
| "index": 13, | ||
| "hwinfo": "13" | ||
| }, | ||
| { | ||
| "index": 14, | ||
| "hwinfo": "14" | ||
| }, | ||
| { | ||
| "index": 15, | ||
| "hwinfo": "15" | ||
| }, | ||
| { | ||
| "index": 0, | ||
| "hwinfo": "0" | ||
| }, | ||
| { | ||
| "index": 1, | ||
| "hwinfo": "1" | ||
| }, | ||
| { | ||
| "index": 2, | ||
| "hwinfo": "2" | ||
| }, | ||
| { | ||
| "index": 3, | ||
| "hwinfo": "3" | ||
| }, | ||
| { | ||
| "index": 4, | ||
| "hwinfo": "4" | ||
| }, | ||
| { | ||
| "index": 5, | ||
| "hwinfo": "5" | ||
| }, | ||
| { | ||
| "index": 6, | ||
| "hwinfo": "6" | ||
| }, | ||
| { | ||
| "index": 7, | ||
| "hwinfo": "7" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.