Skip to content

Commit

Permalink
Add warm boot recover attribute (#854)
Browse files Browse the repository at this point in the history
* Add warm boot recover attribute
  • Loading branch information
itaibaz authored and lguohan committed Aug 15, 2018
1 parent 807e988 commit 22c4bb9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions inc/saiswitch.h
Original file line number Diff line number Diff line change
Expand Up @@ -814,6 +814,7 @@ typedef enum _sai_switch_attr_t
* Since warm restart can be caused by crash
* (therefore there are no guarantees for this call),
* this hint is really a performance optimization.
* This hint is set as part of the shutdown sequence, before boot.
* TRUE - Warm Reboot
* FALSE - Cold Reboot
*
Expand All @@ -823,6 +824,21 @@ typedef enum _sai_switch_attr_t
*/
SAI_SWITCH_ATTR_RESTART_WARM,

/**
* @brief Warm boot recovery
*
* Start warm boot recovery when set to true
* This hint is set after boot.
* In case of host adapter restart, host adapter can pass boot type in
* #SAI_KEY_BOOT_TYPE. In case of host adapter recovery, host adapter can
* pass a hint about the boot type and recovery, in this flag.
*
* @type bool
* @flags CREATE_AND_SET
* @default false
*/
SAI_SWITCH_ATTR_WARM_RECOVER,

/**
* @brief Type of restart supported
*
Expand Down

0 comments on commit 22c4bb9

Please sign in to comment.