Skip to content

Commit 6f29a74

Browse files
andriymoroz-mlnxShuotian Cheng
authored and
Shuotian Cheng
committed
[swssconfig]: Add WRED settings for lossless queues on Mellanox 27xx platforms (#334)
* Unified QoS config for Mellanox 27xx platforms * Add WRED settings for lossless queues (Mellanox 27xx platforms) Signed-off-by: Andriy Moroz <[email protected]>
1 parent dc26aa6 commit 6f29a74

File tree

3 files changed

+19
-172
lines changed

3 files changed

+19
-172
lines changed

debian/swss.install

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
swssconfig/sample/netbouncer.json etc/swss/config.d
22
swssconfig/sample/00-copp.config.json etc/swss/config.d
33
swssconfig/sample/msn27xx.32ports.buffers.json.j2 usr/share/sonic/templates
4-
swssconfig/sample/msn2700.32ports.qos.json etc/swss/config.d
5-
swssconfig/sample/msn2740.32ports.qos.json etc/swss/config.d
4+
swssconfig/sample/msn27xx.32ports.qos.json etc/swss/config.d
65
swssconfig/sample/td2.32ports.buffers.json etc/swss/config.d
76
swssconfig/sample/td2.32ports.qos.json etc/swss/config.d

swssconfig/sample/msn2740.32ports.qos.json

-167
This file was deleted.

swssconfig/sample/msn2700.32ports.qos.json renamed to swssconfig/sample/msn27xx.32ports.qos.json

+18-3
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,21 @@
127127
"OP": "SET"
128128
},
129129
{
130-
"WRED_PROFILE_TABLE:AZURE" : {
130+
"WRED_PROFILE_TABLE:AZURE_LOSSY" : {
131+
"wred_green_enable":"true",
132+
"wred_yellow_enable":"true",
133+
"ecn":"ecn_all",
134+
"red_max_threshold":"512000",
135+
"red_min_threshold":"512000",
136+
"yellow_max_threshold":"512000",
137+
"yellow_min_threshold":"512000",
138+
"green_max_threshold": "184320",
139+
"green_min_threshold": "184320"
140+
},
141+
"OP": "SET"
142+
},
143+
{
144+
"WRED_PROFILE_TABLE:AZURE_LOSSLESS" : {
131145
"wred_green_enable":"true",
132146
"wred_yellow_enable":"true",
133147
"ecn":"ecn_all",
@@ -142,13 +156,14 @@
142156
},
143157
{
144158
"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" : {
145-
"wred_profile" : "[WRED_PROFILE_TABLE:AZURE]"
159+
"wred_profile" : "[WRED_PROFILE_TABLE:AZURE_LOSSY]"
146160
},
147161
"OP": "SET"
148162
},
149163
{
150164
"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" : {
151-
"scheduler" : "[SCHEDULER_TABLE:scheduler.0]"
165+
"scheduler" : "[SCHEDULER_TABLE:scheduler.0]",
166+
"wred_profile" : "[WRED_PROFILE_TABLE:AZURE_LOSSLESS]"
152167
},
153168
"OP": "SET"
154169
},

0 commit comments

Comments
 (0)