Skip to content

Commit

Permalink
[schema] WRED red max threshold and ECN modes
Browse files Browse the repository at this point in the history
* Added support for specifying ECN mode values
* Added red_max_threshold

signed-off-by hrachya@mellanox.com
  • Loading branch information
Hrachya Mughnetsyan committed Jul 21, 2016
1 parent b56c9cc commit 4c778ff
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions doc/swss-schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,18 +256,25 @@ and reflects the LAG ports into the redis under: `LAG_TABLE:<team0>:port`
###WRED\_PROFILE\_TABLE
; WRED profile
; SAI mapping - saiwred.h
key = "WRED_PROFILE_TABLE:"name
key = "WRED_PROFILE_TABLE:"name
;field value
yellow_max_threshold = byte_count
green_max_threshold = byte_count
byte_count = 1*DIGIT

yellow_max_threshold = byte_count
green_max_threshold = byte_count
red_max_threshold = byte_count
byte_count = 1*DIGIT
ecn = "ecn_none" / "ecn_green" / "ecn_yellow" / "ecn_red" / "ecn_green_yellow" / "ecn_green_red" / "ecn_yellow_red" / "ecn_all"

Example:
127.0.0.1:6379> hgetall "WRED_PROFILE_TABLE:AZURE"
1) "green_max_threshold"
2) "20480"
3) "yellow_max_threshold"
4) "30720"
5) "red_max_threshold"
6) "1234"
7) "ecn"
8) "ecn_all"


----------------------------------------------
###TUNNEL_DECAP_TABLE
Expand Down

0 comments on commit 4c778ff

Please sign in to comment.