-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[201911] Adding SKU Mellanox-SN3800-D100C12S2 #7972
Merged
prsunny
merged 10 commits into
sonic-net:201911
from
madhanmellanox:201911MellanoxSN3800D100C12S2SKU
Jun 30, 2021
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
6556ff2
[201911]: Adding SKU Mellanox-SN3800-D100C12S2
f883fd9
modified buffers defaults t0 and t1 config values
79c1da3
modified buffer values and made pg_profile_lookup.ini as a symbolic file
26bccc1
Addressed comments in port_config.ini
d9e813f
modifing SAI XML file value in SAI Profile file
8718c1e
fixed index value of 39 for etp39a and etp39b ports in port_config.ini
8888395
changed buffer config values due to removing 4 50G ports due to retim…
1ea2d7b
reverted back buffer values to previous values accounting all the ports
345caf8
fixed the SAI XML file for 50G with split 2 tag
fd1607c
modified 10G ports according to HW restrictions
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
1 change: 1 addition & 0 deletions
1
device/mellanox/x86_64-mlnx_msn3800-r0/Mellanox-SN3800-D100C12S2/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 @@ | ||
../../x86_64-mlnx_msn2700-r0/ACS-MSN2700/buffers.json.j2 |
100 changes: 100 additions & 0 deletions
100
device/mellanox/x86_64-mlnx_msn3800-r0/Mellanox-SN3800-D100C12S2/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,100 @@ | ||
{% set default_cable = '5m' %} | ||
{% set ingress_lossless_pool_size = '20664320' %} | ||
{% set ingress_lossless_pool_xoff = '3321856' %} | ||
{% set egress_lossless_pool_size = '34287552' %} | ||
{% set egress_lossy_pool_size = '20664320' %} | ||
|
||
{%- macro generate_port_lists(PORT_ALL) %} | ||
{# Generate list of ports #} | ||
{%- for port_idx in range(0, 32) %} | ||
{%- if PORT_ALL.append("Ethernet%d" % (port_idx)) %}{%- endif %} | ||
{%- endfor %} | ||
{%- endmacro %} | ||
|
||
{%- macro generate_buffer_pool_and_profiles() %} | ||
"BUFFER_POOL": { | ||
"ingress_lossless_pool": { | ||
"size": "{{ ingress_lossless_pool_size }}", | ||
"xoff": "{{ ingress_lossless_pool_xoff }}", | ||
"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]", | ||
"size":"0", | ||
"dynamic_th":"7" | ||
}, | ||
"ingress_lossy_profile": { | ||
"pool":"[BUFFER_POOL|ingress_lossless_pool]", | ||
"size":"0", | ||
"dynamic_th":"3" | ||
}, | ||
"egress_lossless_profile": { | ||
"pool":"[BUFFER_POOL|egress_lossless_pool]", | ||
"size":"0", | ||
"dynamic_th":"7" | ||
}, | ||
"egress_lossy_profile": { | ||
"pool":"[BUFFER_POOL|egress_lossy_pool]", | ||
"size":"9216", | ||
"dynamic_th":"7" | ||
}, | ||
"q_lossy_profile": { | ||
"pool":"[BUFFER_POOL|egress_lossy_pool]", | ||
"size":"0", | ||
"dynamic_th":"3" | ||
} | ||
}, | ||
{%- endmacro %} | ||
|
||
{%- macro generate_profile_lists(port_names) %} | ||
"BUFFER_PORT_INGRESS_PROFILE_LIST": { | ||
{% for port in port_names.split(',') %} | ||
"{{ port }}": { | ||
"profile_list" : "[BUFFER_PROFILE|ingress_lossless_profile]" | ||
}{% if not loop.last %},{% endif %} | ||
|
||
{% endfor %} | ||
}, | ||
"BUFFER_PORT_EGRESS_PROFILE_LIST": { | ||
{% for port in port_names.split(',') %} | ||
"{{ port }}": { | ||
"profile_list" : "[BUFFER_PROFILE|egress_lossless_profile],[BUFFER_PROFILE|egress_lossy_profile]" | ||
}{% if not loop.last %},{% endif %} | ||
|
||
{% endfor %} | ||
} | ||
{%- endmacro %} | ||
|
||
{%- macro generate_queue_buffers(port_names) %} | ||
"BUFFER_QUEUE": { | ||
{% for port in port_names.split(',') %} | ||
"{{ port }}|3-4": { | ||
"profile" : "[BUFFER_PROFILE|egress_lossless_profile]" | ||
}, | ||
{% endfor %} | ||
{% for port in port_names.split(',') %} | ||
"{{ port }}|0-2": { | ||
"profile" : "[BUFFER_PROFILE|q_lossy_profile]" | ||
}, | ||
{% endfor %} | ||
{% for port in port_names.split(',') %} | ||
"{{ port }}|5-6": { | ||
"profile" : "[BUFFER_PROFILE|q_lossy_profile]" | ||
}{% if not loop.last %},{% endif %} | ||
|
||
{% endfor %} | ||
} | ||
{%- endmacro %} |
100 changes: 100 additions & 0 deletions
100
device/mellanox/x86_64-mlnx_msn3800-r0/Mellanox-SN3800-D100C12S2/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,100 @@ | ||
{% set default_cable = '5m' %} | ||
{% set ingress_lossless_pool_size = '19601408' %} | ||
{% set ingress_lossless_pool_xoff = '4384768' %} | ||
{% set egress_lossless_pool_size = '34287552' %} | ||
{% set egress_lossy_pool_size = '19601408' %} | ||
|
||
{%- macro generate_port_lists(PORT_ALL) %} | ||
{# Generate list of ports #} | ||
{%- for port_idx in range(0, 32) %} | ||
{%- if PORT_ALL.append("Ethernet%d" % (port_idx)) %}{%- endif %} | ||
{%- endfor %} | ||
{%- endmacro %} | ||
|
||
{%- macro generate_buffer_pool_and_profiles() %} | ||
"BUFFER_POOL": { | ||
"ingress_lossless_pool": { | ||
"size": "{{ ingress_lossless_pool_size }}", | ||
"xoff": "{{ ingress_lossless_pool_xoff }}", | ||
"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]", | ||
"size":"0", | ||
"dynamic_th":"7" | ||
}, | ||
"ingress_lossy_profile": { | ||
"pool":"[BUFFER_POOL|ingress_lossless_pool]", | ||
"size":"0", | ||
"dynamic_th":"3" | ||
}, | ||
"egress_lossless_profile": { | ||
"pool":"[BUFFER_POOL|egress_lossless_pool]", | ||
"size":"0", | ||
"dynamic_th":"7" | ||
}, | ||
"egress_lossy_profile": { | ||
"pool":"[BUFFER_POOL|egress_lossy_pool]", | ||
"size":"9216", | ||
"dynamic_th":"7" | ||
}, | ||
"q_lossy_profile": { | ||
"pool":"[BUFFER_POOL|egress_lossy_pool]", | ||
"size":"0", | ||
"dynamic_th":"3" | ||
} | ||
}, | ||
{%- endmacro %} | ||
|
||
{%- macro generate_profile_lists(port_names) %} | ||
"BUFFER_PORT_INGRESS_PROFILE_LIST": { | ||
{% for port in port_names.split(',') %} | ||
"{{ port }}": { | ||
"profile_list" : "[BUFFER_PROFILE|ingress_lossless_profile]" | ||
}{% if not loop.last %},{% endif %} | ||
|
||
{% endfor %} | ||
}, | ||
"BUFFER_PORT_EGRESS_PROFILE_LIST": { | ||
{% for port in port_names.split(',') %} | ||
"{{ port }}": { | ||
"profile_list" : "[BUFFER_PROFILE|egress_lossless_profile],[BUFFER_PROFILE|egress_lossy_profile]" | ||
}{% if not loop.last %},{% endif %} | ||
|
||
{% endfor %} | ||
} | ||
{%- endmacro %} | ||
|
||
{%- macro generate_queue_buffers(port_names) %} | ||
"BUFFER_QUEUE": { | ||
{% for port in port_names.split(',') %} | ||
"{{ port }}|3-4": { | ||
"profile" : "[BUFFER_PROFILE|egress_lossless_profile]" | ||
}, | ||
{% endfor %} | ||
{% for port in port_names.split(',') %} | ||
"{{ port }}|0-2": { | ||
"profile" : "[BUFFER_PROFILE|q_lossy_profile]" | ||
}, | ||
{% endfor %} | ||
{% for port in port_names.split(',') %} | ||
"{{ port }}|5-6": { | ||
"profile" : "[BUFFER_PROFILE|q_lossy_profile]" | ||
}{% if not loop.last %},{% endif %} | ||
|
||
{% endfor %} | ||
} | ||
{%- endmacro %} |
1 change: 1 addition & 0 deletions
1
device/mellanox/x86_64-mlnx_msn3800-r0/Mellanox-SN3800-D100C12S2/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 @@ | ||
../Mellanox-SN3800-D112C8/pg_profile_lookup.ini |
115 changes: 115 additions & 0 deletions
115
device/mellanox/x86_64-mlnx_msn3800-r0/Mellanox-SN3800-D100C12S2/port_config.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,115 @@ | ||
# name lanes alias index speed | ||
Ethernet0 0,1 etp1a 1 50000 | ||
Ethernet2 2,3 etp1b 1 50000 | ||
Ethernet4 4,5 etp2a 2 50000 | ||
Ethernet6 6,7 etp2b 2 50000 | ||
Ethernet8 8,9 etp3a 3 50000 | ||
Ethernet10 10,11 etp3b 3 50000 | ||
Ethernet12 12,13 etp4a 4 50000 | ||
Ethernet14 14,15 etp4b 4 50000 | ||
Ethernet16 16,17 etp5a 5 50000 | ||
Ethernet18 18,19 etp5b 5 50000 | ||
Ethernet20 20,21 etp6a 6 50000 | ||
Ethernet22 22,23 etp6b 6 50000 | ||
Ethernet24 24,25 etp7a 7 50000 | ||
Ethernet26 26,27 etp7b 7 50000 | ||
Ethernet28 28,29 etp8a 8 50000 | ||
Ethernet30 30,31 etp8b 8 50000 | ||
Ethernet32 32,33 etp9a 9 50000 | ||
Ethernet34 34,35 etp9b 9 50000 | ||
Ethernet36 36,37 etp10a 10 50000 | ||
Ethernet38 38,39 etp10b 10 50000 | ||
Ethernet40 40,41 etp11a 11 50000 | ||
Ethernet42 42,43 etp11b 11 50000 | ||
Ethernet44 44,45 etp12a 12 50000 | ||
Ethernet46 46,47 etp12b 12 50000 | ||
Ethernet48 48,49 etp13a 13 50000 | ||
Ethernet50 50,51 etp13b 13 50000 | ||
Ethernet52 52,53 etp14a 14 50000 | ||
Ethernet54 54,55 etp14b 14 50000 | ||
Ethernet56 56,57 etp15a 15 50000 | ||
Ethernet58 58,59 etp15b 15 50000 | ||
Ethernet60 60,61 etp16a 16 50000 | ||
Ethernet62 62,63 etp16b 16 50000 | ||
Ethernet64 64,65 etp17a 17 50000 | ||
Ethernet66 66,67 etp17b 17 50000 | ||
Ethernet68 68,69 etp18a 18 50000 | ||
Ethernet70 70,71 etp18b 18 50000 | ||
Ethernet72 72,73 etp19a 19 50000 | ||
Ethernet74 74,75 etp19b 19 50000 | ||
Ethernet76 76,77 etp20a 20 50000 | ||
Ethernet78 78,79 etp20b 20 50000 | ||
Ethernet80 80,81 etp21a 21 50000 | ||
Ethernet82 82,83 etp21b 21 50000 | ||
Ethernet84 84,85 etp22a 22 50000 | ||
Ethernet86 86,87 etp22b 22 50000 | ||
Ethernet88 88,89 etp23a 23 50000 | ||
Ethernet90 90,91 etp23b 23 50000 | ||
Ethernet92 92,93 etp24a 24 50000 | ||
Ethernet94 94,95 etp24b 24 50000 | ||
Ethernet96 96,97 etp25a 25 50000 | ||
Ethernet98 98,99 etp25b 25 50000 | ||
Ethernet100 100,101 etp26a 26 50000 | ||
Ethernet102 102,103 etp26b 26 50000 | ||
Ethernet104 104,105 etp27a 27 50000 | ||
Ethernet106 106,107 etp27b 27 50000 | ||
Ethernet108 108,109 etp28a 28 50000 | ||
Ethernet110 110,111 etp28b 28 50000 | ||
Ethernet112 112,113 etp29a 29 50000 | ||
Ethernet114 114,115 etp29b 29 50000 | ||
Ethernet116 116,117 etp30a 30 50000 | ||
Ethernet118 118,119 etp30b 30 50000 | ||
Ethernet120 120,121 etp31a 31 50000 | ||
Ethernet122 122,123 etp31b 31 50000 | ||
Ethernet124 124,125 etp32a 32 50000 | ||
Ethernet126 126,127 etp32b 32 50000 | ||
Ethernet128 128,129 etp33a 33 50000 | ||
Ethernet130 130,131 etp33b 33 50000 | ||
Ethernet132 132,133 etp34a 34 50000 | ||
Ethernet134 134,135 etp34b 34 50000 | ||
Ethernet136 136,137 etp35a 35 50000 | ||
Ethernet138 138,139 etp35b 35 50000 | ||
Ethernet140 140,141 etp36a 36 50000 | ||
Ethernet142 142,143 etp36b 36 50000 | ||
Ethernet144 144,145 etp37a 37 50000 | ||
Ethernet146 146,147 etp37b 37 50000 | ||
Ethernet148 148,149,150,151 etp38 38 10000 | ||
Ethernet152 152,153 etp39a 39 50000 | ||
Ethernet154 154,155 etp39b 39 50000 | ||
Ethernet156 156,157,158,159 etp40 40 10000 | ||
Ethernet160 160,161 etp41a 41 50000 | ||
Ethernet162 162,163 etp41b 41 50000 | ||
Ethernet164 164,165 etp42a 42 50000 | ||
Ethernet166 166,167 etp42b 42 50000 | ||
Ethernet168 168,169 etp43a 43 50000 | ||
Ethernet170 170,171 etp43b 43 50000 | ||
Ethernet172 172,173 etp44a 44 50000 | ||
Ethernet174 174,175 etp44b 44 50000 | ||
Ethernet176 176,177 etp45a 45 50000 | ||
Ethernet178 178,179 etp45b 45 50000 | ||
Ethernet180 180,181 etp46a 46 50000 | ||
Ethernet182 182,183 etp46b 46 50000 | ||
Ethernet184 184,185 etp47a 47 50000 | ||
Ethernet186 186,187 etp47b 47 50000 | ||
Ethernet188 188,189 etp48a 48 50000 | ||
Ethernet190 190,191 etp48b 48 50000 | ||
Ethernet192 192,193 etp49a 49 50000 | ||
Ethernet194 194,195 etp49b 49 50000 | ||
Ethernet196 196,197 etp50a 50 50000 | ||
Ethernet198 198,199 etp50b 50 50000 | ||
Ethernet200 200,201 etp51a 51 50000 | ||
Ethernet202 202,203 etp51b 51 50000 | ||
Ethernet204 204,205 etp52a 52 50000 | ||
Ethernet206 206,207 etp52b 52 50000 | ||
Ethernet208 208,209,210,211 etp53 53 100000 | ||
Ethernet212 212,213,214,215 etp54 54 100000 | ||
Ethernet216 216,217,218,219 etp55 55 100000 | ||
Ethernet220 220,221,222,223 etp56 56 100000 | ||
Ethernet224 224,225,226,227 etp57 57 100000 | ||
Ethernet228 228,229,230,231 etp58 58 100000 | ||
Ethernet232 232,233,234,235 etp59 59 100000 | ||
Ethernet236 236,237,238,239 etp60 60 100000 | ||
Ethernet240 240,241,242,243 etp61 61 100000 | ||
Ethernet244 244,245,246,247 etp62 62 100000 | ||
Ethernet248 248,249,250,251 etp63 63 100000 | ||
Ethernet252 252,253,254,255 etp64 64 100000 |
1 change: 1 addition & 0 deletions
1
device/mellanox/x86_64-mlnx_msn3800-r0/Mellanox-SN3800-D100C12S2/qos.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 @@ | ||
../../x86_64-mlnx_msn2700-r0/ACS-MSN2700/qos.json.j2 | ||
2 changes: 2 additions & 0 deletions
2
device/mellanox/x86_64-mlnx_msn3800-r0/Mellanox-SN3800-D100C12S2/sai.profile
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 @@ | ||
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/sai_3800_2x10g_100x50g_12x100g.xml | ||
SAI_VXLAN_SRCPORT_RANGE_ENABLE=1 |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pg_profile is pointing to ../Mellanox-SN3800-D112C8/pg_profile_lookup.ini. Can you confirm if these soft-links are correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes I verified it on the workspace, the symbolic link is there. I also verified the pg_profile_lookup.ini file is viewable on the switch as well.