Skip to content

Commit

Permalink
Unitialize data plane on switch removal (#795)
Browse files Browse the repository at this point in the history
Controls whether data plane is unitialized upon removal
Typically, host adapter will want that, as leaving traffic running
without control is risky
However, on some scenarios, such as fast boot, it is needed to leave the
data plane running
Host adapter will call this attribute if needed, and then call remove
switch
  • Loading branch information
itaibaz authored and lguohan committed Apr 5, 2018
1 parent e472cc2 commit c26fb26
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions inc/saiswitch.h
Original file line number Diff line number Diff line change
Expand Up @@ -1645,6 +1645,21 @@ typedef enum _sai_switch_attr_t
*/
SAI_SWITCH_ATTR_SUPPORTED_EXTENDED_STATS_MODE,

/**
* @brief Uninitialize data plane upon removal of switch object
*
* Typical use case for tear down of the host adapter, is to remove the switch ID,
* which will stop all data and control plane, as leaving data plane open without
* control can be a security risk.
* However, on some scenarios, such as fast boot, host adapter would like to set
* this value to false, call remove switch, and have the data plane still running.
*
* @type bool
* @flags CREATE_AND_SET
* @default true
*/
SAI_SWITCH_ATTR_UNINIT_DATA_PLANE_ON_REMOVAL,

/**
* @brief End of attributes
*/
Expand Down

0 comments on commit c26fb26

Please sign in to comment.