Skip to content

Commit

Permalink
Addressing comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
r12f committed Apr 4, 2024
1 parent 571c8ae commit abe48f1
Showing 1 changed file with 5 additions and 22 deletions.
27 changes: 5 additions & 22 deletions documentation/high-avail/ha-api-hld.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,15 +203,16 @@ Whenever a HA set state is changed, it will be reported back via HA set event no
*/
typedef enum _sai_ha_set_event_t
{
/** Any HA set state is changed, such as data plane channel goes down. */
SAI_HA_SET_STATE_CHANGED,
/** Data plane channel goes up. */
SAI_HA_SET_DP_CHANNEL_UP,

/** Data plane channel goes down. */
SAI_HA_SET_DP_CHANNEL_DOWN,

} sai_ha_set_event_t;

/**
* @brief Notification data format received from SAI HA set callback
*
* @count attr[attr_count]
*/
typedef struct _sai_ha_set_event_data_t
{
Expand All @@ -221,9 +222,6 @@ typedef struct _sai_ha_set_event_data_t
/** HA set id */
sai_object_id_t ha_set_id;

/** Is data plane channel alive from data plane channel probing */
bool dp_channel_is_alive;

} sai_ha_set_event_data_t;

/**
Expand All @@ -246,26 +244,11 @@ typedef void (*sai_ha_set_event_notification_fn)(
Similar to HA set, whenever any HA scope state is changed, it will be reported back via HA scope event notification. The detailed definition is shown as below:
```c
/**
* @brief HA scope event type
*/
typedef enum _sai_ha_scope_event_t
{
/** Any HA scope state is changed, such as HA state. */
SAI_HA_SCOPE_STATE_CHANGED,
} sai_ha_scope_event_t;
/**
* @brief Notification data format received from SAI HA scope callback
*
* @count attr[attr_count]
*/
typedef struct _sai_ha_scope_event_data_t
{
/** Event type */
sai_ha_scope_event_t event_type;
/** HA scope id */
sai_object_id_t ha_scope_id;
Expand Down

0 comments on commit abe48f1

Please sign in to comment.