Skip to content

Commit

Permalink
[swssconfig]: Add WRED settings for lossless queues on Mellanox 27xx …
Browse files Browse the repository at this point in the history
…platforms (#334)

* Unified QoS config for Mellanox 27xx platforms
* Add WRED settings for lossless queues (Mellanox 27xx platforms)

Signed-off-by: Andriy Moroz <c_andriym@mellanox.com>
  • Loading branch information
andriymoroz-mlnx authored and Shuotian Cheng committed Oct 5, 2017
1 parent dc26aa6 commit 6f29a74
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 172 deletions.
3 changes: 1 addition & 2 deletions debian/swss.install
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
swssconfig/sample/netbouncer.json etc/swss/config.d
swssconfig/sample/00-copp.config.json etc/swss/config.d
swssconfig/sample/msn27xx.32ports.buffers.json.j2 usr/share/sonic/templates
swssconfig/sample/msn2700.32ports.qos.json etc/swss/config.d
swssconfig/sample/msn2740.32ports.qos.json etc/swss/config.d
swssconfig/sample/msn27xx.32ports.qos.json etc/swss/config.d
swssconfig/sample/td2.32ports.buffers.json etc/swss/config.d
swssconfig/sample/td2.32ports.qos.json etc/swss/config.d
167 changes: 0 additions & 167 deletions swssconfig/sample/msn2740.32ports.qos.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,21 @@
"OP": "SET"
},
{
"WRED_PROFILE_TABLE:AZURE" : {
"WRED_PROFILE_TABLE:AZURE_LOSSY" : {
"wred_green_enable":"true",
"wred_yellow_enable":"true",
"ecn":"ecn_all",
"red_max_threshold":"512000",
"red_min_threshold":"512000",
"yellow_max_threshold":"512000",
"yellow_min_threshold":"512000",
"green_max_threshold": "184320",
"green_min_threshold": "184320"
},
"OP": "SET"
},
{
"WRED_PROFILE_TABLE:AZURE_LOSSLESS" : {
"wred_green_enable":"true",
"wred_yellow_enable":"true",
"ecn":"ecn_all",
Expand All @@ -142,13 +156,14 @@
},
{
"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" : {
"wred_profile" : "[WRED_PROFILE_TABLE:AZURE]"
"wred_profile" : "[WRED_PROFILE_TABLE:AZURE_LOSSY]"
},
"OP": "SET"
},
{
"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" : {
"scheduler" : "[SCHEDULER_TABLE:scheduler.0]"
"scheduler" : "[SCHEDULER_TABLE:scheduler.0]",
"wred_profile" : "[WRED_PROFILE_TABLE:AZURE_LOSSLESS]"
},
"OP": "SET"
},
Expand Down

0 comments on commit 6f29a74

Please sign in to comment.