Commit e329dbd
authored
Survive pfc watchdog storm action across warm-reboot (#794)
* Survive PFC watchdog and storm action in warm-reboot
Signed-off-by: Wenda Ni <[email protected]>
* Remove logs used for debugging
Signed-off-by: Wenda Ni <[email protected]>
* Add queue index check before taking storm action during warm-reboot
Signed-off-by: Wenda Ni <[email protected]>
* Correct log message
Signed-off-by: Wenda Ni <[email protected]>
* Log storm event for all storm actions not only drop action
Signed-off-by: Wenda Ni <[email protected]>
* Address review comments
Signed-off-by: Wenda Ni <[email protected]>
* Address the situation that stoi() may throw an exception
Signed-off-by: Wenda Ni <[email protected]>
* Fine-gran handling of stoi exceptions
Signed-off-by: Wenda Ni <[email protected]>
* Shift temporarily to STATE_DB
Signed-off-by: Wenda Ni <[email protected]>
* Add debugging symbols
Signed-off-by: Wenda Ni <[email protected]>
* Revert "Shift temporarily to STATE_DB"
This reverts commit 1027cc12e22aa201bed59f0ed8cd83cc7ad7ef8d.
* Orthogonalize pfc wd table names
Signed-off-by: Wenda Ni <[email protected]>
* Implement doTask for the new Consumer, which subscribes to APPL_DB
PFC_WD_TABLE keyspace
Signed-off-by: Wenda Ni <[email protected]>
* Clean up and touch-ups
Signed-off-by: Wenda Ni <[email protected]>
* Delete multiple fields in one hdel call
Signed-off-by: Wenda Ni <[email protected]>
* Refactor codes with multi-fields hdel
Signed-off-by: Wenda Ni <[email protected]>
* Address comments: remove unnecessary catch blocks for stoi() call
Signed-off-by: Wenda Ni <[email protected]>
* Use RedisClient to do hset (previous through Table hset)
Signed-off-by: Wenda Ni <[email protected]>
* Remove debugging symbols
Signed-off-by: Wenda Ni <[email protected]>
* Address review comments: Replace PfcWdSwOrch<DropHandler, ForwardHandler>:: with this to shorten the code length
Signed-off-by: Wenda Ni <[email protected]>
* Address review comments: Refactor existing codes to replace PfcWdSwOrch<DropHandler,
ForwardHandler>:: with this to shorten the code length
Signed-off-by: Wenda Ni <[email protected]>
* Remove unused variable to correct compile error
Signed-off-by: Wenda Ni <[email protected]>1 parent aa92326 commit e329dbd
File tree
6 files changed
+237
-53
lines changed- orchagent
6 files changed
+237
-53
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
0 commit comments