[201911] Created a new 3800 SKU - D28C49S1 (#7312)

This commit is contained in:
madhanmellanox 2021-04-23 14:48:50 -07:00 committed by GitHub
parent e0f2d9a93b
commit da6cf08917
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 767 additions and 0 deletions

View File

@ -0,0 +1 @@
../ACS-MSN3800/buffers.json.j2

View File

@ -0,0 +1,100 @@
{% set default_cable = '5m' %}
{% set ingress_lossless_pool_size = '24360960' %}
{% set ingress_lossless_pool_xoff = '2795520' %}
{% set egress_lossless_pool_size = '34287552' %}
{% set egress_lossy_pool_size = '24360960' %}
{%- 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 %}

View File

@ -0,0 +1,100 @@
{% set default_cable = '5m' %}
{% set ingress_lossless_pool_size = '22380544' %}
{% set ingress_lossless_pool_xoff = '4775936' %}
{% set egress_lossless_pool_size = '34287552' %}
{% set egress_lossy_pool_size = '22380544' %}
{%- 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 %}

View File

@ -0,0 +1 @@
../Mellanox-SN3800-D112C8/pg_profile_lookup.ini

View File

@ -0,0 +1,79 @@
# name lanes alias index speed
Ethernet0 0,1,2,3 etp1 1 100000
Ethernet4 4,5,6,7 etp2 2 100000
Ethernet8 8,9,10,11 etp3 3 100000
Ethernet12 12,13,14,15 etp4 4 100000
Ethernet16 16,17,18,19 etp5 5 100000
Ethernet20 20,21,22,23 etp6 6 100000
Ethernet24 24,25,26,27 etp7 7 100000
Ethernet28 28,29,30,31 etp8 8 100000
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,50,51 etp13 13 100000
Ethernet52 52,53,54,55 etp14 14 100000
Ethernet56 56,57,58,59 etp15 15 100000
Ethernet60 60,61,62,63 etp16 16 100000
Ethernet64 64,65,66,67 etp17 17 100000
Ethernet68 68,69,70,71 etp18 18 100000
Ethernet72 72,73,74,75 etp19 19 100000
Ethernet76 76,77,78,79 etp20 20 100000
Ethernet80 80,81,82,83 etp21 21 100000
Ethernet84 84,85,86,87 etp22 22 100000
Ethernet88 88,89,90,91 etp23 23 100000
Ethernet92 92,93,94,95 etp24 24 100000
Ethernet96 96,97,98,99 etp25 25 100000
Ethernet100 100,101,102,103 etp26 26 100000
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,114,115 etp29 29 100000
Ethernet116 116,117,118,119 etp30 30 100000
Ethernet120 120,121,122,123 etp31 31 100000
Ethernet124 124,125,126,127 etp32 32 100000
Ethernet128 128,129,130,131 etp33 33 100000
Ethernet132 132,133,134,135 etp34 34 100000
Ethernet136 136,137,138,139 etp35 35 100000
Ethernet140 140,141,142,143 etp36 36 100000
Ethernet144 144,145,146,147 etp37 37 100000
Ethernet148 148,149,150,151 etp38 38 100000
Ethernet152 152,153,154,155 etp39 38 100000
Ethernet156 156,157,158,159 etp40 40 100000
Ethernet160 160,161,162,163 etp41 41 100000
Ethernet164 164,165 etp42a 42 50000
Ethernet166 166,167 etp42b 42 50000
Ethernet168 168,169,170,171 etp43 43 100000
Ethernet172 172,173,174,175 etp44 44 100000
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,194,195 etp49 49 100000
Ethernet196 196,197,198,199 etp50 50 100000
Ethernet200 200,201,202,203 etp51 51 100000
Ethernet204 204,205,206,207 etp52 52 100000
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 etp61a 61 50000
Ethernet242 242,243 etp61b 61 50000
Ethernet244 244,245 etp62a 62 50000
Ethernet246 246,247 etp62b 62 50000
Ethernet248 248,249 etp63a 63 50000
Ethernet250 250,251 etp63b 63 50000
Ethernet252 252,253,254,255 etp64 64 10000

View File

@ -0,0 +1 @@
../ACS-MSN3800/qos.json.j2

View File

@ -0,0 +1 @@
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/sai_3800_1x10g_28x50g_49x100g.xml

View File

@ -0,0 +1,484 @@
<?xml version="1.0"?>
<root>
<platform_info type="3800">
<!-- Device MAC address -->
<device-mac-address>00:02:03:04:05:00</device-mac-address>
<!-- ISSU enabled -->
<issu-enabled>1</issu-enabled>
<!-- Number of ports in the following port list -->
<number-of-physical-ports>64</number-of-physical-ports>
<!-- List of ports in the device -->
<ports-list>
<port-info>
<local-port>1</local-port>
<width>4</width>
<module>48</module>
<!-- 0 none, 1=2, 2=4, 3=2,4 -->
<breakout-modes>3</breakout-modes>
<!-- (BITMASK) 2 - 1Gb , 16 - 10Gb , 32 - 40Gb , 384 - 50Gb , 1536 - 100Gb , 4096 - 200Gb -->
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>3</local-port>
<width>4</width>
<module>49</module>
<breakout-modes>1</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>5</local-port>
<width>4</width>
<module>50</module>
<breakout-modes>3</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>7</local-port>
<width>4</width>
<module>51</module>
<breakout-modes>1</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>9</local-port>
<width>4</width>
<module>52</module>
<breakout-modes>3</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>11</local-port>
<width>4</width>
<module>53</module>
<breakout-modes>1</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>13</local-port>
<width>4</width>
<module>54</module>
<breakout-modes>3</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>15</local-port>
<width>4</width>
<module>55</module>
<breakout-modes>1</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>17</local-port>
<width>4</width>
<module>56</module>
<breakout-modes>3</breakout-modes>
<port-speed>384</port-speed>
<split>2</split>
</port-info>
<port-info>
<local-port>19</local-port>
<width>4</width>
<module>57</module>
<breakout-modes>1</breakout-modes>
<port-speed>384</port-speed>
<split>2</split>
</port-info>
<port-info>
<local-port>21</local-port>
<width>4</width>
<module>58</module>
<breakout-modes>3</breakout-modes>
<port-speed>384</port-speed>
<split>2</split>
</port-info>
<port-info>
<local-port>23</local-port>
<width>4</width>
<module>59</module>
<breakout-modes>1</breakout-modes>
<port-speed>384</port-speed>
<split>2</split>
</port-info>
<port-info>
<local-port>25</local-port>
<width>4</width>
<module>60</module>
<breakout-modes>3</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>27</local-port>
<width>4</width>
<module>61</module>
<breakout-modes>1</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>29</local-port>
<width>4</width>
<module>62</module>
<breakout-modes>3</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>31</local-port>
<width>4</width>
<module>63</module>
<breakout-modes>1</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>33</local-port>
<width>4</width>
<module>12</module>
<breakout-modes>3</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>35</local-port>
<width>4</width>
<module>13</module>
<breakout-modes>1</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>37</local-port>
<width>4</width>
<module>14</module>
<breakout-modes>3</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>39</local-port>
<width>4</width>
<module>15</module>
<breakout-modes>1</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>41</local-port>
<width>4</width>
<module>8</module>
<breakout-modes>3</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>43</local-port>
<width>4</width>
<module>9</module>
<breakout-modes>1</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>45</local-port>
<width>4</width>
<module>10</module>
<breakout-modes>3</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>47</local-port>
<width>4</width>
<module>11</module>
<breakout-modes>1</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>49</local-port>
<width>4</width>
<module>4</module>
<breakout-modes>3</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>51</local-port>
<width>4</width>
<module>5</module>
<breakout-modes>1</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>53</local-port>
<width>4</width>
<module>6</module>
<breakout-modes>3</breakout-modes>
<port-speed>384</port-speed>
<split>2</split>
</port-info>
<port-info>
<local-port>55</local-port>
<width>4</width>
<module>7</module>
<breakout-modes>1</breakout-modes>
<port-speed>384</port-speed>
<split>2</split>
</port-info>
<port-info>
<local-port>57</local-port>
<width>4</width>
<module>0</module>
<breakout-modes>3</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>59</local-port>
<width>4</width>
<module>1</module>
<breakout-modes>1</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>61</local-port>
<width>4</width>
<module>2</module>
<breakout-modes>3</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>63</local-port>
<width>4</width>
<module>3</module>
<breakout-modes>1</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>65</local-port>
<width>4</width>
<module>44</module>
<breakout-modes>3</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>67</local-port>
<width>4</width>
<module>45</module>
<breakout-modes>1</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>69</local-port>
<width>4</width>
<module>46</module>
<breakout-modes>3</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>71</local-port>
<width>4</width>
<module>47</module>
<breakout-modes>1</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>73</local-port>
<width>4</width>
<module>40</module>
<breakout-modes>3</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>75</local-port>
<width>4</width>
<module>41</module>
<breakout-modes>1</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>77</local-port>
<width>4</width>
<module>42</module>
<breakout-modes>3</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>79</local-port>
<width>4</width>
<module>43</module>
<breakout-modes>1</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>81</local-port>
<width>4</width>
<module>36</module>
<breakout-modes>3</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>83</local-port>
<width>4</width>
<module>37</module>
<breakout-modes>1</breakout-modes>
<port-speed>384</port-speed>
<split>2</split>
</port-info>
<port-info>
<local-port>85</local-port>
<width>4</width>
<module>38</module>
<breakout-modes>3</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>87</local-port>
<width>4</width>
<module>39</module>
<breakout-modes>1</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>89</local-port>
<width>4</width>
<module>32</module>
<breakout-modes>3</breakout-modes>
<port-speed>384</port-speed>
<split>2</split>
</port-info>
<port-info>
<local-port>91</local-port>
<width>4</width>
<module>33</module>
<breakout-modes>1</breakout-modes>
<port-speed>384</port-speed>
<split>2</split>
</port-info>
<port-info>
<local-port>93</local-port>
<width>4</width>
<module>34</module>
<breakout-modes>3</breakout-modes>
<port-speed>384</port-speed>
<split>2</split>
</port-info>
<port-info>
<local-port>95</local-port>
<width>4</width>
<module>35</module>
<breakout-modes>1</breakout-modes>
<port-speed>384</port-speed>
<split>2</split>
</port-info>
<port-info>
<local-port>97</local-port>
<width>4</width>
<module>16</module>
<breakout-modes>3</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>99</local-port>
<width>4</width>
<module>17</module>
<breakout-modes>1</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>101</local-port>
<width>4</width>
<module>18</module>
<breakout-modes>3</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>103</local-port>
<width>4</width>
<module>19</module>
<breakout-modes>1</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>105</local-port>
<width>4</width>
<module>20</module>
<breakout-modes>3</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>107</local-port>
<width>4</width>
<module>21</module>
<breakout-modes>1</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>109</local-port>
<width>4</width>
<module>22</module>
<breakout-modes>3</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>111</local-port>
<width>4</width>
<module>23</module>
<breakout-modes>1</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>113</local-port>
<width>4</width>
<module>24</module>
<breakout-modes>3</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>115</local-port>
<width>4</width>
<module>25</module>
<breakout-modes>1</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>117</local-port>
<width>4</width>
<module>26</module>
<breakout-modes>3</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>119</local-port>
<width>4</width>
<module>27</module>
<breakout-modes>1</breakout-modes>
<port-speed>1536</port-speed>
</port-info>
<port-info>
<local-port>121</local-port>
<width>4</width>
<module>28</module>
<breakout-modes>3</breakout-modes>
<port-speed>384</port-speed>
<split>2</split>
</port-info>
<port-info>
<local-port>123</local-port>
<width>4</width>
<module>29</module>
<breakout-modes>1</breakout-modes>
<port-speed>384</port-speed>
<split>2</split>
</port-info>
<port-info>
<local-port>125</local-port>
<width>4</width>
<module>30</module>
<breakout-modes>3</breakout-modes>
<port-speed>384</port-speed>
<split>2</split>
</port-info>
<port-info>
<local-port>127</local-port>
<width>4</width>
<module>31</module>
<breakout-modes>1</breakout-modes>
<port-speed>16</port-speed>
</port-info>
</ports-list>
</platform_info>
</root>