Skip to content

Commit 4e206ba

Browse files
madhanmellanoxMadhan Babu
andauthored
Adding new SKU Mellanox-SN4600C-C4 (#7815)
Add new SKU of SN4600C switch: Mellanox-SN4600c-c64 Co-authored-by: Madhan Babu <[email protected]>
1 parent b259624 commit 4e206ba

File tree

10 files changed

+428
-0
lines changed

10 files changed

+428
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../x86_64-mlnx_msn2700-r0/ACS-MSN2700/buffers.json.j2
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
{% set default_cable = '5m' %}
2+
{% set ingress_lossless_pool_size = '53379072' %}
3+
{% set ingress_lossy_pool_size = '1540096' %}
4+
{% set egress_lossless_pool_size = '60817408' %}
5+
{% set egress_lossy_pool_size = '53379072' %}
6+
7+
{%- macro generate_port_lists(PORT_ALL) %}
8+
{# Generate list of ports #}
9+
{%- for port_idx in range(0, 32) %}
10+
{%- if PORT_ALL.append("Ethernet%d" % (port_idx)) %}{%- endif %}
11+
{%- endfor %}
12+
{%- endmacro %}
13+
14+
{%- macro generate_buffer_pool_and_profiles() %}
15+
"BUFFER_POOL": {
16+
"ingress_lossless_pool": {
17+
{%- if dynamic_mode is not defined %}
18+
"size": "{{ ingress_lossless_pool_size }}",
19+
{%- endif %}
20+
"type": "ingress",
21+
"mode": "dynamic"
22+
},
23+
"ingress_lossy_pool": {
24+
{%- if dynamic_mode is not defined %}
25+
"size": "{{ ingress_lossy_pool_size }}",
26+
{%- endif %}
27+
"type": "ingress",
28+
"mode": "dynamic"
29+
},
30+
"egress_lossless_pool": {
31+
"size": "{{ egress_lossless_pool_size }}",
32+
"type": "egress",
33+
"mode": "dynamic"
34+
},
35+
"egress_lossy_pool": {
36+
{%- if dynamic_mode is not defined %}
37+
"size": "{{ egress_lossy_pool_size }}",
38+
{%- endif %}
39+
"type": "egress",
40+
"mode": "dynamic"
41+
}
42+
},
43+
"BUFFER_PROFILE": {
44+
"ingress_lossless_profile": {
45+
"pool":"[BUFFER_POOL|ingress_lossless_pool]",
46+
"size":"0",
47+
"dynamic_th":"7"
48+
},
49+
"ingress_lossy_profile": {
50+
"pool":"[BUFFER_POOL|ingress_lossy_pool]",
51+
"size":"0",
52+
"dynamic_th":"3"
53+
},
54+
"egress_lossless_profile": {
55+
"pool":"[BUFFER_POOL|egress_lossless_pool]",
56+
"size":"0",
57+
"dynamic_th":"7"
58+
},
59+
"egress_lossy_profile": {
60+
"pool":"[BUFFER_POOL|egress_lossy_pool]",
61+
"size":"9216",
62+
"dynamic_th":"7"
63+
},
64+
"q_lossy_profile": {
65+
"pool":"[BUFFER_POOL|egress_lossy_pool]",
66+
"size":"0",
67+
"dynamic_th":"3"
68+
}
69+
},
70+
{%- endmacro %}
71+
72+
{%- macro generate_profile_lists(port_names) %}
73+
"BUFFER_PORT_INGRESS_PROFILE_LIST": {
74+
{% for port in port_names.split(',') %}
75+
"{{ port }}": {
76+
"profile_list" : "[BUFFER_PROFILE|ingress_lossless_profile],[BUFFER_PROFILE|ingress_lossy_profile]"
77+
}{% if not loop.last %},{% endif %}
78+
79+
{% endfor %}
80+
},
81+
"BUFFER_PORT_EGRESS_PROFILE_LIST": {
82+
{% for port in port_names.split(',') %}
83+
"{{ port }}": {
84+
"profile_list" : "[BUFFER_PROFILE|egress_lossless_profile],[BUFFER_PROFILE|egress_lossy_profile]"
85+
}{% if not loop.last %},{% endif %}
86+
87+
{% endfor %}
88+
}
89+
{%- endmacro %}
90+
91+
{%- macro generate_queue_buffers(port_names) %}
92+
"BUFFER_QUEUE": {
93+
{% for port in port_names.split(',') %}
94+
"{{ port }}|3-4": {
95+
"profile" : "[BUFFER_PROFILE|egress_lossless_profile]"
96+
},
97+
{% endfor %}
98+
{% for port in port_names.split(',') %}
99+
"{{ port }}|0-2": {
100+
"profile" : "[BUFFER_PROFILE|q_lossy_profile]"
101+
},
102+
{% endfor %}
103+
{% for port in port_names.split(',') %}
104+
"{{ port }}|5-6": {
105+
"profile" : "[BUFFER_PROFILE|q_lossy_profile]"
106+
}{% if not loop.last %},{% endif %}
107+
108+
{% endfor %}
109+
}
110+
{%- endmacro %}
111+
112+
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
{% set default_cable = '5m' %}
2+
{% set ingress_lossless_pool_size = '52723712' %}
3+
{% set ingress_lossless_pool_xoff = '2195456' %}
4+
{% set egress_lossless_pool_size = '60817408' %}
5+
{% set egress_lossy_pool_size = '52723712' %}
6+
7+
{%- macro generate_port_lists(PORT_ALL) %}
8+
{# Generate list of ports #}
9+
{%- for port_idx in range(0, 32) %}
10+
{%- if PORT_ALL.append("Ethernet%d" % (port_idx)) %}{%- endif %}
11+
{%- endfor %}
12+
{%- endmacro %}
13+
14+
{%- macro generate_buffer_pool_and_profiles() %}
15+
"BUFFER_POOL": {
16+
"ingress_lossless_pool": {
17+
{%- if dynamic_mode is not defined %}
18+
"size": "{{ ingress_lossless_pool_size }}",
19+
{%- endif %}
20+
"type": "ingress",
21+
"mode": "dynamic"
22+
},
23+
"ingress_lossy_pool": {
24+
{%- if dynamic_mode is not defined %}
25+
"size": "{{ ingress_lossy_pool_size }}",
26+
{%- endif %}
27+
"type": "ingress",
28+
"mode": "dynamic"
29+
},
30+
"egress_lossless_pool": {
31+
"size": "{{ egress_lossless_pool_size }}",
32+
"type": "egress",
33+
"mode": "dynamic"
34+
},
35+
"egress_lossy_pool": {
36+
{%- if dynamic_mode is not defined %}
37+
"size": "{{ egress_lossy_pool_size }}",
38+
{%- endif %}
39+
"type": "egress",
40+
"mode": "dynamic"
41+
}
42+
},
43+
"BUFFER_PROFILE": {
44+
"ingress_lossless_profile": {
45+
"pool":"[BUFFER_POOL|ingress_lossless_pool]",
46+
"size":"0",
47+
"dynamic_th":"7"
48+
},
49+
"ingress_lossy_profile": {
50+
"pool":"[BUFFER_POOL|ingress_lossy_pool]",
51+
"size":"0",
52+
"dynamic_th":"3"
53+
},
54+
"egress_lossless_profile": {
55+
"pool":"[BUFFER_POOL|egress_lossless_pool]",
56+
"size":"0",
57+
"dynamic_th":"7"
58+
},
59+
"egress_lossy_profile": {
60+
"pool":"[BUFFER_POOL|egress_lossy_pool]",
61+
"size":"9216",
62+
"dynamic_th":"7"
63+
},
64+
"q_lossy_profile": {
65+
"pool":"[BUFFER_POOL|egress_lossy_pool]",
66+
"size":"0",
67+
"dynamic_th":"3"
68+
}
69+
},
70+
{%- endmacro %}
71+
72+
{%- macro generate_profile_lists(port_names) %}
73+
"BUFFER_PORT_INGRESS_PROFILE_LIST": {
74+
{% for port in port_names.split(',') %}
75+
"{{ port }}": {
76+
"profile_list" : "[BUFFER_PROFILE|ingress_lossless_profile],[BUFFER_PROFILE|ingress_lossy_profile]"
77+
}{% if not loop.last %},{% endif %}
78+
79+
{% endfor %}
80+
},
81+
"BUFFER_PORT_EGRESS_PROFILE_LIST": {
82+
{% for port in port_names.split(',') %}
83+
"{{ port }}": {
84+
"profile_list" : "[BUFFER_PROFILE|egress_lossless_profile],[BUFFER_PROFILE|egress_lossy_profile]"
85+
}{% if not loop.last %},{% endif %}
86+
87+
{% endfor %}
88+
}
89+
{%- endmacro %}
90+
91+
{%- macro generate_queue_buffers(port_names) %}
92+
"BUFFER_QUEUE": {
93+
{% for port in port_names.split(',') %}
94+
"{{ port }}|3-4": {
95+
"profile" : "[BUFFER_PROFILE|egress_lossless_profile]"
96+
},
97+
{% endfor %}
98+
{% for port in port_names.split(',') %}
99+
"{{ port }}|0-2": {
100+
"profile" : "[BUFFER_PROFILE|q_lossy_profile]"
101+
},
102+
{% endfor %}
103+
{% for port in port_names.split(',') %}
104+
"{{ port }}|5-6": {
105+
"profile" : "[BUFFER_PROFILE|q_lossy_profile]"
106+
}{% if not loop.last %},{% endif %}
107+
108+
{% endfor %}
109+
}
110+
{%- endmacro %}
111+
112+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../x86_64-mlnx_msn2700-r0/ACS-MSN2700/buffers_dynamic.json.j2

0 commit comments

Comments
 (0)