-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move QoS configuration to Config DB (#1178)
* Move Mellanox QoS configuration to config DB Signed-off-by: Andriy Moroz <[email protected]> * Move qos.json to hwsku subfolder Signed-off-by: Andriy Moroz <[email protected]> * Remove copying of old qos config Signed-off-by: Andriy Moroz <[email protected]> * Update WRED threshold values Signed-off-by: Andriy Moroz <[email protected]> * hwsku2 Signed-off-by: Andriy Moroz <[email protected]> * Fix syntax error in json Signed-off-by: Andriy Moroz <[email protected]> * Add qos config for some Dell and Arista platforms Signed-off-by: Andriy Moroz <[email protected]> * Fix inital qos config on clean boot Signed-off-by: Andriy Moroz <[email protected]> * Updated swss-common and swss pointers (QoS in Config DB) Signed-off-by: Andriy Moroz <[email protected]>
- Loading branch information
1 parent
0f903d0
commit 6d0329a
Showing
9 changed files
with
674 additions
and
3 deletions.
There are no files selected for viewing
166 changes: 166 additions & 0 deletions
166
device/arista/x86_64-arista_7050_qx32/Arista-7050-QX32/qos.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,166 @@ | ||
{ | ||
"TC_TO_PRIORITY_GROUP_MAP": { | ||
"AZURE": { | ||
"0": "0", | ||
"1": "1", | ||
"3": "3", | ||
"4": "4" | ||
} | ||
}, | ||
"MAP_PFC_PRIORITY_TO_QUEUE": { | ||
"AZURE": { | ||
"0": "0", | ||
"1": "1", | ||
"3": "3", | ||
"4": "4" | ||
} | ||
}, | ||
"TC_TO_QUEUE_MAP": { | ||
"AZURE": { | ||
"0": "0", | ||
"1": "1", | ||
"3": "3", | ||
"4": "4" | ||
} | ||
}, | ||
"DSCP_TO_TC_MAP": { | ||
"AZURE": { | ||
"0":"0", | ||
"1":"0", | ||
"2":"0", | ||
"3":"3", | ||
"4":"4", | ||
"5":"0", | ||
"6":"0", | ||
"7":"0", | ||
"8":"1", | ||
"9":"0", | ||
"10":"0", | ||
"11":"0", | ||
"12":"0", | ||
"13":"0", | ||
"14":"0", | ||
"15":"0", | ||
"16":"0", | ||
"17":"0", | ||
"18":"0", | ||
"19":"0", | ||
"20":"0", | ||
"21":"0", | ||
"22":"0", | ||
"23":"0", | ||
"24":"0", | ||
"25":"0", | ||
"26":"0", | ||
"27":"0", | ||
"28":"0", | ||
"29":"0", | ||
"30":"0", | ||
"31":"0", | ||
"32":"0", | ||
"33":"0", | ||
"34":"0", | ||
"35":"0", | ||
"36":"0", | ||
"37":"0", | ||
"38":"0", | ||
"39":"0", | ||
"40":"0", | ||
"41":"0", | ||
"42":"0", | ||
"43":"0", | ||
"44":"0", | ||
"45":"0", | ||
"46":"0", | ||
"47":"0", | ||
"48":"0", | ||
"49":"0", | ||
"50":"0", | ||
"51":"0", | ||
"52":"0", | ||
"53":"0", | ||
"54":"0", | ||
"55":"0", | ||
"56":"0", | ||
"57":"0", | ||
"58":"0", | ||
"59":"0", | ||
"60":"0", | ||
"61":"0", | ||
"62":"0", | ||
"63":"0" | ||
} | ||
}, | ||
"SCHEDULER": { | ||
"scheduler.0": { | ||
"type":"DWRR", | ||
"weight": "25" | ||
}, | ||
"scheduler.1": { | ||
"type":"DWRR", | ||
"weight": "30" | ||
}, | ||
"scheduler.2": { | ||
"type":"DWRR", | ||
"weight": "20" | ||
} | ||
}, | ||
"PFC_PRIORITY_TO_PRIORITY_GROUP_MAP": { | ||
"AZURE": { | ||
"0": "0", | ||
"1": "1", | ||
"3": "3", | ||
"4": "4" | ||
} | ||
}, | ||
"PORT_QOS_MAP": { | ||
"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": { | ||
"dscp_to_tc_map" : "[DSCP_TO_TC_MAP|AZURE]", | ||
"tc_to_queue_map" : "[TC_TO_QUEUE_MAP|AZURE]", | ||
"tc_to_pg_map" : "[TC_TO_PRIORITY_GROUP_MAP|AZURE]", | ||
"pfc_to_queue_map": "[MAP_PFC_PRIORITY_TO_QUEUE|AZURE]", | ||
"pfc_to_pg_map" : "[PFC_PRIORITY_TO_PRIORITY_GROUP_MAP|AZURE]", | ||
"pfc_enable": "3,4" | ||
} | ||
}, | ||
"WRED_PROFILE": { | ||
"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" | ||
}, | ||
"AZURE_LOSSLESS": { | ||
"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" | ||
} | ||
}, | ||
"QUEUE": { | ||
"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": { | ||
"scheduler" : "[SCHEDULER|scheduler.1]" | ||
}, | ||
"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": { | ||
"scheduler" : "[SCHEDULER|scheduler.2]" | ||
}, | ||
"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|AZURE_LOSSY]" | ||
}, | ||
"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|scheduler.0]", | ||
"wred_profile" : "[WRED_PROFILE|AZURE_LOSSLESS]" | ||
} | ||
} | ||
} | ||
|
166 changes: 166 additions & 0 deletions
166
device/dell/x86_64-dell_s6000_s1220-r0/Force10-S6000/qos.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,166 @@ | ||
{ | ||
"TC_TO_PRIORITY_GROUP_MAP": { | ||
"AZURE": { | ||
"0": "0", | ||
"1": "1", | ||
"3": "3", | ||
"4": "4" | ||
} | ||
}, | ||
"MAP_PFC_PRIORITY_TO_QUEUE": { | ||
"AZURE": { | ||
"0": "0", | ||
"1": "1", | ||
"3": "3", | ||
"4": "4" | ||
} | ||
}, | ||
"TC_TO_QUEUE_MAP": { | ||
"AZURE": { | ||
"0": "0", | ||
"1": "1", | ||
"3": "3", | ||
"4": "4" | ||
} | ||
}, | ||
"DSCP_TO_TC_MAP": { | ||
"AZURE": { | ||
"0":"0", | ||
"1":"0", | ||
"2":"0", | ||
"3":"3", | ||
"4":"4", | ||
"5":"0", | ||
"6":"0", | ||
"7":"0", | ||
"8":"1", | ||
"9":"0", | ||
"10":"0", | ||
"11":"0", | ||
"12":"0", | ||
"13":"0", | ||
"14":"0", | ||
"15":"0", | ||
"16":"0", | ||
"17":"0", | ||
"18":"0", | ||
"19":"0", | ||
"20":"0", | ||
"21":"0", | ||
"22":"0", | ||
"23":"0", | ||
"24":"0", | ||
"25":"0", | ||
"26":"0", | ||
"27":"0", | ||
"28":"0", | ||
"29":"0", | ||
"30":"0", | ||
"31":"0", | ||
"32":"0", | ||
"33":"0", | ||
"34":"0", | ||
"35":"0", | ||
"36":"0", | ||
"37":"0", | ||
"38":"0", | ||
"39":"0", | ||
"40":"0", | ||
"41":"0", | ||
"42":"0", | ||
"43":"0", | ||
"44":"0", | ||
"45":"0", | ||
"46":"0", | ||
"47":"0", | ||
"48":"0", | ||
"49":"0", | ||
"50":"0", | ||
"51":"0", | ||
"52":"0", | ||
"53":"0", | ||
"54":"0", | ||
"55":"0", | ||
"56":"0", | ||
"57":"0", | ||
"58":"0", | ||
"59":"0", | ||
"60":"0", | ||
"61":"0", | ||
"62":"0", | ||
"63":"0" | ||
} | ||
}, | ||
"SCHEDULER": { | ||
"scheduler.0": { | ||
"type":"DWRR", | ||
"weight": "25" | ||
}, | ||
"scheduler.1": { | ||
"type":"DWRR", | ||
"weight": "30" | ||
}, | ||
"scheduler.2": { | ||
"type":"DWRR", | ||
"weight": "20" | ||
} | ||
}, | ||
"PFC_PRIORITY_TO_PRIORITY_GROUP_MAP": { | ||
"AZURE": { | ||
"0": "0", | ||
"1": "1", | ||
"3": "3", | ||
"4": "4" | ||
} | ||
}, | ||
"PORT_QOS_MAP": { | ||
"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": { | ||
"dscp_to_tc_map" : "[DSCP_TO_TC_MAP|AZURE]", | ||
"tc_to_queue_map" : "[TC_TO_QUEUE_MAP|AZURE]", | ||
"tc_to_pg_map" : "[TC_TO_PRIORITY_GROUP_MAP|AZURE]", | ||
"pfc_to_queue_map": "[MAP_PFC_PRIORITY_TO_QUEUE|AZURE]", | ||
"pfc_to_pg_map" : "[PFC_PRIORITY_TO_PRIORITY_GROUP_MAP|AZURE]", | ||
"pfc_enable": "3,4" | ||
} | ||
}, | ||
"WRED_PROFILE": { | ||
"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" | ||
}, | ||
"AZURE_LOSSLESS": { | ||
"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" | ||
} | ||
}, | ||
"QUEUE": { | ||
"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": { | ||
"scheduler" : "[SCHEDULER|scheduler.1]" | ||
}, | ||
"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": { | ||
"scheduler" : "[SCHEDULER|scheduler.2]" | ||
}, | ||
"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|AZURE_LOSSY]" | ||
}, | ||
"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|scheduler.0]", | ||
"wred_profile" : "[WRED_PROFILE|AZURE_LOSSLESS]" | ||
} | ||
} | ||
} | ||
|
Oops, something went wrong.