Skip to content

Commit

Permalink
Update DASH pipeline and HA related counters. (#2051)
Browse files Browse the repository at this point in the history
These counters are recently added for checking drops in DASH pipeline.
It follows the DASH HLD here: https://github.com/sonic-net/DASH/blob/main/documentation/high-avail/ha-api-hld.md.
  • Loading branch information
r12f authored Jul 15, 2024
1 parent d15eca7 commit 8e74c55
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 10 deletions.
53 changes: 43 additions & 10 deletions experimental/saiexperimentaldasheni.h
Original file line number Diff line number Diff line change
Expand Up @@ -638,14 +638,17 @@ typedef enum _sai_eni_stat_t
/** DASH ENI INLINE_FLOW_CREATE_REQ_FAILED stat count */
SAI_ENI_STAT_INLINE_FLOW_CREATE_REQ_FAILED,

/** DASH ENI INLINE_FLOW_CREATE_REQ_IGNORED stat count */
SAI_ENI_STAT_INLINE_FLOW_CREATE_REQ_IGNORED,

/** DASH ENI INLINE_FLOW_CREATE_ACK_RECV stat count */
SAI_ENI_STAT_INLINE_FLOW_CREATE_ACK_RECV,

/** DASH ENI INLINE_FLOW_CREATE_ACK_FAILED_RECV stat count */
SAI_ENI_STAT_INLINE_FLOW_CREATE_ACK_FAILED_RECV,
/** DASH ENI INLINE_FLOW_CREATE_ACK_FAILED stat count */
SAI_ENI_STAT_INLINE_FLOW_CREATE_ACK_FAILED,

/** DASH ENI INLINE_FLOW_CREATE_ACK_IGNORED_RECV stat count */
SAI_ENI_STAT_INLINE_FLOW_CREATE_ACK_IGNORED_RECV,
/** DASH ENI INLINE_FLOW_CREATE_ACK_IGNORED stat count */
SAI_ENI_STAT_INLINE_FLOW_CREATE_ACK_IGNORED,

/** DASH ENI TIMED_FLOW_CREATE_REQ_SENT stat count */
SAI_ENI_STAT_TIMED_FLOW_CREATE_REQ_SENT,
Expand All @@ -656,14 +659,17 @@ typedef enum _sai_eni_stat_t
/** DASH ENI TIMED_FLOW_CREATE_REQ_FAILED stat count */
SAI_ENI_STAT_TIMED_FLOW_CREATE_REQ_FAILED,

/** DASH ENI TIMED_FLOW_CREATE_REQ_IGNORED stat count */
SAI_ENI_STAT_TIMED_FLOW_CREATE_REQ_IGNORED,

/** DASH ENI TIMED_FLOW_CREATE_ACK_RECV stat count */
SAI_ENI_STAT_TIMED_FLOW_CREATE_ACK_RECV,

/** DASH ENI TIMED_FLOW_CREATE_ACK_FAILED_RECV stat count */
SAI_ENI_STAT_TIMED_FLOW_CREATE_ACK_FAILED_RECV,
/** DASH ENI TIMED_FLOW_CREATE_ACK_FAILED stat count */
SAI_ENI_STAT_TIMED_FLOW_CREATE_ACK_FAILED,

/** DASH ENI TIMED_FLOW_CREATE_ACK_IGNORED_RECV stat count */
SAI_ENI_STAT_TIMED_FLOW_CREATE_ACK_IGNORED_RECV,
/** DASH ENI TIMED_FLOW_CREATE_ACK_IGNORED stat count */
SAI_ENI_STAT_TIMED_FLOW_CREATE_ACK_IGNORED,

/** DASH ENI INLINE_FLOW_UPDATE_REQ_SENT stat count */
SAI_ENI_STAT_INLINE_FLOW_UPDATE_REQ_SENT,
Expand All @@ -674,6 +680,9 @@ typedef enum _sai_eni_stat_t
/** DASH ENI INLINE_FLOW_UPDATE_REQ_FAILED stat count */
SAI_ENI_STAT_INLINE_FLOW_UPDATE_REQ_FAILED,

/** DASH ENI INLINE_FLOW_UPDATE_REQ_IGNORED stat count */
SAI_ENI_STAT_INLINE_FLOW_UPDATE_REQ_IGNORED,

/** DASH ENI INLINE_FLOW_UPDATE_ACK_RECV stat count */
SAI_ENI_STAT_INLINE_FLOW_UPDATE_ACK_RECV,

Expand All @@ -692,6 +701,9 @@ typedef enum _sai_eni_stat_t
/** DASH ENI TIMED_FLOW_UPDATE_REQ_FAILED stat count */
SAI_ENI_STAT_TIMED_FLOW_UPDATE_REQ_FAILED,

/** DASH ENI TIMED_FLOW_UPDATE_REQ_IGNORED stat count */
SAI_ENI_STAT_TIMED_FLOW_UPDATE_REQ_IGNORED,

/** DASH ENI TIMED_FLOW_UPDATE_ACK_RECV stat count */
SAI_ENI_STAT_TIMED_FLOW_UPDATE_ACK_RECV,

Expand All @@ -710,6 +722,9 @@ typedef enum _sai_eni_stat_t
/** DASH ENI INLINE_FLOW_DELETE_REQ_FAILED stat count */
SAI_ENI_STAT_INLINE_FLOW_DELETE_REQ_FAILED,

/** DASH ENI INLINE_FLOW_DELETE_REQ_IGNORED stat count */
SAI_ENI_STAT_INLINE_FLOW_DELETE_REQ_IGNORED,

/** DASH ENI INLINE_FLOW_DELETE_ACK_RECV stat count */
SAI_ENI_STAT_INLINE_FLOW_DELETE_ACK_RECV,

Expand All @@ -728,14 +743,32 @@ typedef enum _sai_eni_stat_t
/** DASH ENI TIMED_FLOW_DELETE_REQ_FAILED stat count */
SAI_ENI_STAT_TIMED_FLOW_DELETE_REQ_FAILED,

/** DASH ENI TIMED_FLOW_DELETE_REQ_IGNORED stat count */
SAI_ENI_STAT_TIMED_FLOW_DELETE_REQ_IGNORED,

/** DASH ENI TIMED_FLOW_DELETE_ACK_RECV stat count */
SAI_ENI_STAT_TIMED_FLOW_DELETE_ACK_RECV,

/** DASH ENI TIMED_FLOW_DELETE_ACK_FAILED_RECV stat count */
SAI_ENI_STAT_TIMED_FLOW_DELETE_ACK_FAILED_RECV,

/** DASH ENI TIMED_FLOW_DELETE_ACK_IGNORED_RECV stat count */
SAI_ENI_STAT_TIMED_FLOW_DELETE_ACK_IGNORED_RECV,
/** DASH ENI TIMED_FLOW_DELETE_ACK_IGNORED stat count */
SAI_ENI_STAT_TIMED_FLOW_DELETE_ACK_IGNORED,

/** DASH ENI OUTBOUND_ROUTING_ENTRY_MISS_DROP_PACKETS stat count */
SAI_ENI_STAT_OUTBOUND_ROUTING_ENTRY_MISS_DROP_PACKETS,

/** DASH ENI OUTBOUND_CA_PA_ENTRY_MISS_DROP_PACKETS stat count */
SAI_ENI_STAT_OUTBOUND_CA_PA_ENTRY_MISS_DROP_PACKETS,

/** DASH ENI INBOUND_ROUTING_ENTRY_MISS_DROP_PACKETS stat count */
SAI_ENI_STAT_INBOUND_ROUTING_ENTRY_MISS_DROP_PACKETS,

/** DASH ENI OUTBOUND_ROUTING_GROUP_MISS_DROP_PACKETS stat count */
SAI_ENI_STAT_OUTBOUND_ROUTING_GROUP_MISS_DROP_PACKETS,

/** DASH ENI OUTBOUND_ROUTING_GROUP_DISABLED_DROP_PACKETS stat count */
SAI_ENI_STAT_OUTBOUND_ROUTING_GROUP_DISABLED_DROP_PACKETS,

} sai_eni_stat_t;

Expand Down
18 changes: 18 additions & 0 deletions experimental/saiportextensions.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,24 @@ typedef enum _sai_port_stat_extensions_t
/** DASH port LB_FAST_PATH_ENI_MISS_PACKETS stat count */
SAI_PORT_STAT_LB_FAST_PATH_ENI_MISS_PACKETS,

/** DASH port VIP_MISS_DROP_PACKETS stat count */
SAI_PORT_STAT_VIP_MISS_DROP_PACKETS,

/** DASH port ENI_MISS_DROP_PACKETS stat count */
SAI_PORT_STAT_ENI_MISS_DROP_PACKETS,

/** DASH port PORT_LB_FAST_PATH_ICMP_IN_BYTES stat count */
SAI_PORT_STAT_PORT_LB_FAST_PATH_ICMP_IN_BYTES,

/** DASH port PORT_LB_FAST_PATH_ICMP_IN_PACKETS stat count */
SAI_PORT_STAT_PORT_LB_FAST_PATH_ICMP_IN_PACKETS,

/** DASH port PORT_LB_FAST_PATH_ENI_MISS_DROP_BYTES stat count */
SAI_PORT_STAT_PORT_LB_FAST_PATH_ENI_MISS_DROP_BYTES,

/** DASH port PORT_LB_FAST_PATH_ENI_MISS_DROP_PACKETS stat count */
SAI_PORT_STAT_PORT_LB_FAST_PATH_ENI_MISS_DROP_PACKETS,

/* Add new experimental port stats above this line */

SAI_PORT_STAT_EXTENSIONS_RANGE_END
Expand Down

0 comments on commit 8e74c55

Please sign in to comment.