Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Survive pfc watchdog storm action across warm-reboot (#794)
* Survive PFC watchdog and storm action in warm-reboot Signed-off-by: Wenda Ni <wenni@microsoft.com> * Remove logs used for debugging Signed-off-by: Wenda Ni <wenni@microsoft.com> * Add queue index check before taking storm action during warm-reboot Signed-off-by: Wenda Ni <wenni@microsoft.com> * Correct log message Signed-off-by: Wenda Ni <wenni@microsoft.com> * Log storm event for all storm actions not only drop action Signed-off-by: Wenda Ni <wenni@microsoft.com> * Address review comments Signed-off-by: Wenda Ni <wenni@microsoft.com> * Address the situation that stoi() may throw an exception Signed-off-by: Wenda Ni <wenni@microsoft.com> * Fine-gran handling of stoi exceptions Signed-off-by: Wenda Ni <wenni@microsoft.com> * Shift temporarily to STATE_DB Signed-off-by: Wenda Ni <wenni@microsoft.com> * Add debugging symbols Signed-off-by: Wenda Ni <wenni@microsoft.com> * Revert "Shift temporarily to STATE_DB" This reverts commit 1027cc12e22aa201bed59f0ed8cd83cc7ad7ef8d. * Orthogonalize pfc wd table names Signed-off-by: Wenda Ni <wenni@microsoft.com> * Implement doTask for the new Consumer, which subscribes to APPL_DB PFC_WD_TABLE keyspace Signed-off-by: Wenda Ni <wenni@microsoft.com> * Clean up and touch-ups Signed-off-by: Wenda Ni <wenni@microsoft.com> * Delete multiple fields in one hdel call Signed-off-by: Wenda Ni <wenni@microsoft.com> * Refactor codes with multi-fields hdel Signed-off-by: Wenda Ni <wenni@microsoft.com> * Address comments: remove unnecessary catch blocks for stoi() call Signed-off-by: Wenda Ni <wenni@microsoft.com> * Use RedisClient to do hset (previous through Table hset) Signed-off-by: Wenda Ni <wenni@microsoft.com> * Remove debugging symbols Signed-off-by: Wenda Ni <wenni@microsoft.com> * Address review comments: Replace PfcWdSwOrch<DropHandler, ForwardHandler>:: with this to shorten the code length Signed-off-by: Wenda Ni <wenni@microsoft.com> * Address review comments: Refactor existing codes to replace PfcWdSwOrch<DropHandler, ForwardHandler>:: with this to shorten the code length Signed-off-by: Wenda Ni <wenni@microsoft.com> * Remove unused variable to correct compile error Signed-off-by: Wenda Ni <wenni@microsoft.com>
- Loading branch information