Skip to content

Commit 8056a15

Browse files
Add td2 qos configurations in small chunks
1 parent b97b534 commit 8056a15

10 files changed

+325
-0
lines changed

debian/swss.install

+9
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,12 @@ swssconfig/sample/netbouncer.json etc/swss/config.d
44
swssconfig/sample/qos.config.json etc/swss/config.d
55
swssconfig/sample/td2.32ports.buffers.json etc/swss/config.d
66
swssconfig/sample/td2.32ports.qos.json etc/swss/config.d
7+
swssconfig/sample/td2.32ports.buffers.1.json etc/swss/config.d
8+
swssconfig/sample/td2.32ports.buffers.2.json etc/swss/config.d
9+
swssconfig/sample/td2.32ports.buffers.3.json etc/swss/config.d
10+
swssconfig/sample/td2.32ports.qos.1.json etc/swss/config.d
11+
swssconfig/sample/td2.32ports.qos.2.json etc/swss/config.d
12+
swssconfig/sample/td2.32ports.qos.3.json etc/swss/config.d
13+
swssconfig/sample/td2.32ports.qos.4.json etc/swss/config.d
14+
swssconfig/sample/td2.32ports.qos.5.json etc/swss/config.d
15+
swssconfig/sample/td2.32ports.qos.6.json etc/swss/config.d
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
[
2+
{
3+
"BUFFER_POOL_TABLE:ingress_lossless_pool0": {
4+
"size": "3637248",
5+
"type": "ingress",
6+
"mode": "static"
7+
},
8+
"OP": "SET"
9+
},
10+
{
11+
"BUFFER_POOL_TABLE:ingress_lossless_pool1": {
12+
"size": "3637248",
13+
"type": "ingress",
14+
"mode": "static"
15+
},
16+
"OP": "SET"
17+
},
18+
{
19+
"BUFFER_POOL_TABLE:ingress_lossy_pool": {
20+
"size": "5491712",
21+
"type": "ingress",
22+
"mode": "dynamic"
23+
},
24+
"OP": "SET"
25+
},
26+
{
27+
"BUFFER_POOL_TABLE:egress_lossless_pool0": {
28+
"size": "113664",
29+
"type": "egress",
30+
"mode": "static"
31+
},
32+
"OP": "SET"
33+
},
34+
{
35+
"BUFFER_POOL_TABLE:egress_lossless_pool1": {
36+
"size": "113664",
37+
"type": "egress",
38+
"mode": "static"
39+
},
40+
"OP": "SET"
41+
},
42+
{
43+
"BUFFER_POOL_TABLE:egress_lossy_pool": {
44+
"size": "5491712",
45+
"type": "egress",
46+
"mode": "dynamic"
47+
},
48+
"OP": "SET"
49+
}
50+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
[
2+
{
3+
"BUFFER_PROFILE_TABLE:ingress_lossless_profile0": {
4+
"pool": "[BUFFER_POOL_TABLE:ingress_lossless_pool0]",
5+
"xon": "18432",
6+
"xoff": "76800",
7+
"size": "113664",
8+
"static_th": "0"
9+
},
10+
"OP": "SET"
11+
},
12+
{
13+
"BUFFER_PROFILE_TABLE:ingress_lossless_profile1": {
14+
"pool":"[BUFFER_POOL_TABLE:ingress_lossless_pool1]",
15+
"xon":"18432",
16+
"xoff":"76800",
17+
"size":"113664",
18+
"static_th": "0"
19+
},
20+
"OP": "SET"
21+
},
22+
{
23+
"BUFFER_PROFILE_TABLE:ingress_lossy_profile": {
24+
"pool":"[BUFFER_POOL_TABLE:ingress_lossy_pool]",
25+
"size":"1518",
26+
"dynamic_th":"3"
27+
},
28+
"OP": "SET"
29+
},
30+
{
31+
"BUFFER_PROFILE_TABLE:egress_lossless_profile0": {
32+
"pool":"[BUFFER_POOL_TABLE:egress_lossless_pool0]",
33+
"size":"1518",
34+
"static_th":"3637248"
35+
},
36+
"OP": "SET"
37+
},
38+
{
39+
"BUFFER_PROFILE_TABLE:egress_lossless_profile1": {
40+
"pool":"[BUFFER_POOL_TABLE:egress_lossless_pool1]",
41+
"size":"1518",
42+
"static_th":"3637248"
43+
},
44+
"OP": "SET"
45+
},
46+
{
47+
"BUFFER_PROFILE_TABLE:egress_lossy_profile": {
48+
"pool":"[BUFFER_POOL_TABLE:egress_lossy_pool]",
49+
"size":"1518",
50+
"dynamic_th":"3"
51+
},
52+
"OP": "SET"
53+
}
54+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
[
2+
{
3+
"BUFFER_PG_TABLE:Ethernet0,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124:3": {
4+
"profile" : "[BUFFER_PROFILE_TABLE:ingress_lossless_profile0]"
5+
},
6+
"OP": "SET"
7+
},
8+
{
9+
"BUFFER_PG_TABLE:Ethernet0,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124:4": {
10+
"profile" : "[BUFFER_PROFILE_TABLE:ingress_lossless_profile1]"
11+
},
12+
"OP": "SET"
13+
},
14+
{
15+
"BUFFER_PG_TABLE:Ethernet0,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124:0-1": {
16+
"profile" : "[BUFFER_PROFILE_TABLE:ingress_lossy_profile]"
17+
},
18+
"OP": "SET"
19+
},
20+
{
21+
"BUFFER_QUEUE_TABLE:Ethernet0,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124:3": {
22+
"profile" : "[BUFFER_PROFILE_TABLE:egress_lossless_profile0]"
23+
},
24+
"OP": "SET"
25+
},
26+
{
27+
"BUFFER_QUEUE_TABLE:Ethernet0,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124:4": {
28+
"profile" : "[BUFFER_PROFILE_TABLE:egress_lossless_profile1]"
29+
},
30+
"OP": "SET"
31+
},
32+
{
33+
"BUFFER_QUEUE_TABLE:Ethernet0,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124:0-1": {
34+
"profile" : "[BUFFER_PROFILE_TABLE:egress_lossy_profile]"
35+
},
36+
"OP": "SET"
37+
}
38+
]
+98
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
[
2+
{
3+
"TC_TO_PRIORITY_GROUP_MAP_TABLE:AZURE": {
4+
"0": "0",
5+
"1": "1",
6+
"3": "3",
7+
"4": "4"
8+
},
9+
"OP": "SET"
10+
},
11+
{
12+
"MAP_PFC_PRIORITY_TO_QUEUE:AZURE": {
13+
"0": "0",
14+
"1": "1",
15+
"3": "3",
16+
"4": "4"
17+
},
18+
"OP": "SET"
19+
},
20+
{
21+
"TC_TO_QUEUE_MAP_TABLE:AZURE": {
22+
"0": "0",
23+
"1": "1",
24+
"3": "3",
25+
"4": "4"
26+
},
27+
"OP": "SET"
28+
},
29+
{
30+
"DSCP_TO_TC_MAP_TABLE:AZURE": {
31+
"0":"0",
32+
"1":"0",
33+
"2":"0",
34+
"3":"3",
35+
"4":"4",
36+
"5":"0",
37+
"6":"0",
38+
"7":"0",
39+
"8":"1",
40+
"9":"0",
41+
"10":"0",
42+
"11":"0",
43+
"12":"0",
44+
"13":"0",
45+
"14":"0",
46+
"15":"0",
47+
"16":"0",
48+
"17":"0",
49+
"18":"0",
50+
"19":"0",
51+
"20":"0",
52+
"21":"0",
53+
"22":"0",
54+
"23":"0",
55+
"24":"0",
56+
"25":"0",
57+
"26":"0",
58+
"27":"0",
59+
"28":"0",
60+
"29":"0",
61+
"30":"0",
62+
"31":"0",
63+
"32":"0",
64+
"33":"0",
65+
"34":"0",
66+
"35":"0",
67+
"36":"0",
68+
"37":"0",
69+
"38":"0",
70+
"39":"0",
71+
"40":"0",
72+
"41":"0",
73+
"42":"0",
74+
"43":"0",
75+
"44":"0",
76+
"45":"0",
77+
"46":"0",
78+
"47":"0",
79+
"48":"0",
80+
"49":"0",
81+
"50":"0",
82+
"51":"0",
83+
"52":"0",
84+
"53":"0",
85+
"54":"0",
86+
"55":"0",
87+
"56":"0",
88+
"57":"0",
89+
"58":"0",
90+
"59":"0",
91+
"60":"0",
92+
"61":"0",
93+
"62":"0",
94+
"63":"0"
95+
},
96+
"OP": "SET"
97+
}
98+
]
+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[
2+
{
3+
"SCHEDULER_TABLE:scheduler.0" : {
4+
"type":"DWRR",
5+
"weight": "25"
6+
},
7+
"OP": "SET"
8+
},
9+
{
10+
"SCHEDULER_TABLE:scheduler.1" : {
11+
"type":"DWRR",
12+
"weight": "30"
13+
},
14+
"OP": "SET"
15+
},
16+
{
17+
"SCHEDULER_TABLE:scheduler.2" : {
18+
"type":"DWRR",
19+
"weight": "20"
20+
},
21+
"OP": "SET"
22+
}
23+
]
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[
2+
{
3+
"PORT_QOS_MAP_TABLE:Ethernet0,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124": {
4+
"dscp_to_tc_map" : "[DSCP_TO_TC_MAP_TABLE:AZURE]",
5+
"tc_to_queue_map" : "[TC_TO_QUEUE_MAP_TABLE:AZURE]",
6+
"tc_to_pg_map" : "[TC_TO_PRIORITY_GROUP_MAP_TABLE:AZURE]",
7+
"pfc_to_queue_map": "[MAP_PFC_PRIORITY_TO_QUEUE:AZURE]",
8+
"pfc_enable": "3,4"
9+
},
10+
"OP": "SET"
11+
}
12+
]
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[
2+
{
3+
"WRED_PROFILE_TABLE:AZURE" : {
4+
"wred_green_enable":"true",
5+
"wred_yellow_enable":"true",
6+
"ecn":"ecn_all",
7+
"red_max_threshold":"512000",
8+
"yellow_max_threshold":"512000",
9+
"green_max_threshold": "184320"
10+
},
11+
"OP": "SET"
12+
}
13+
]
+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[
2+
{
3+
"QUEUE_TABLE:Ethernet0,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124:0-1" : {
4+
"wred_profile" : "[WRED_PROFILE_TABLE:AZURE]"
5+
},
6+
"OP": "SET"
7+
}
8+
]
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[
2+
{
3+
"QUEUE_TABLE:Ethernet0,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124:3-4" : {
4+
"scheduler" : "[SCHEDULER_TABLE:scheduler.0]"
5+
},
6+
"OP": "SET"
7+
},
8+
{
9+
"QUEUE_TABLE:Ethernet0,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124:0" : {
10+
"scheduler" : "[SCHEDULER_TABLE:scheduler.1]"
11+
},
12+
"OP": "SET"
13+
},
14+
{
15+
"QUEUE_TABLE:Ethernet0,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124:1" : {
16+
"scheduler" : "[SCHEDULER_TABLE:scheduler.2]"
17+
},
18+
"OP": "SET"
19+
}
20+
]

0 commit comments

Comments
 (0)