Skip to content

Commit b34bd1f

Browse files
vharish02yxieca
authored andcommitted
[device/dell] Add dynamic buffer pg lookup tbl (#1366)
This commit adds new support for dynamic buffer configuation. Adding pg_profile lookup table for supporting the buffer profile using cable length and port speed. Lookup table entries are calculated based on formula for different cable length and speed. The 50G entries needs to be updated once again as we are waiting for the interface sublayer MAC delay values. Additionally fixed some issues in the buffers.json.j2 file. Signed-off-by: Harish Venkatraman <[email protected]>
1 parent 162089d commit b34bd1f

File tree

2 files changed

+27
-8
lines changed

2 files changed

+27
-8
lines changed

device/dell/x86_64-dell_s6100_c2538-r0/Force10-S6100/buffers.json.j2

+10-8
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
}
6969
},
7070
"BUFFER_POOL": {
71-
"ingress_lossless_lossy_pool": {
71+
"ingress_lossless_pool": {
7272
"size": "10443264",
7373
"type": "ingress",
7474
"mode": "dynamic",
@@ -87,14 +87,14 @@
8787
},
8888
"BUFFER_PROFILE": {
8989
"ingress_lossless_profile": {
90-
"pool": "[BUFFER_POOL|ingress_lossless_lossy_pool]",
90+
"pool": "[BUFFER_POOL|ingress_lossless_pool]",
9191
"xon": "4096",
9292
"xoff": "58448",
9393
"size": "1248",
9494
"dynamic_th": "-4"
9595
},
9696
"ingress_lossy_profile": {
97-
"pool":"[BUFFER_POOL|ingress_lossless_lossy_pool]",
97+
"pool":"[BUFFER_POOL|ingress_lossless_pool]",
9898
"size":"0",
9999
"dynamic_th":"3"
100100
},
@@ -110,16 +110,18 @@
110110
}
111111
},
112112
"BUFFER_PG": {
113-
"{{ port_names }}:3-4": {
113+
"{{ port_names }}|3-4": {
114114
"profile" : "[BUFFER_PROFILE|ingress_lossless_profile]"
115115
},
116-
"{{ port_names }}:0-1": {
116+
"{{ port_names }}|0-1": {
117117
"profile" : "[BUFFER_PROFILE|ingress_lossy_profile]"
118-
},
119-
"BUFFER_QUEUE_TABLE:{{ port_names }}:3-4": {
118+
}
119+
},
120+
"BUFFER_QUEUE": {
121+
"{{ port_names }}|3-4": {
120122
"profile" : "[BUFFER_PROFILE|egress_lossless_profile]"
121123
},
122-
"BUFFER_QUEUE_TABLE:{{ port_names }}:0-1": {
124+
"{{ port_names }}|0-1": {
123125
"profile" : "[BUFFER_PROFILE|egress_lossy_profile]"
124126
}
125127
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# PG lossless profiles.
2+
# speed cable size xon xoff threshold
3+
10000 5m 1248 2288 35776 -4
4+
25000 5m 1248 2288 53248 -4
5+
40000 5m 1248 2288 66560 -4
6+
50000 5m 1248 2288 90272 -4
7+
100000 5m 1248 2288 165568 -4
8+
10000 40m 1248 2288 37024 -4
9+
25000 40m 1248 2288 53248 -4
10+
40000 40m 1248 2288 71552 -4
11+
50000 40m 1248 2288 96096 -4
12+
100000 40m 1248 2288 177632 -4
13+
10000 300m 1248 2288 46176 -4
14+
25000 300m 1248 2288 79040 -4
15+
40000 300m 1248 2288 108160 -4
16+
50000 300m 1248 2288 141856 -4
17+
100000 300m 1248 2288 268736 -4

0 commit comments

Comments
 (0)