From df19292949fdad9aef495fe7329ba51b1aab4b7f Mon Sep 17 00:00:00 2001 From: Riff Date: Mon, 15 Jul 2024 12:03:40 -0700 Subject: [PATCH] Update DASH pipeline and HA related counters. (#2051) 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. --- experimental/saiexperimentaldasheni.h | 53 ++++++++++++++++++++++----- experimental/saiportextensions.h | 18 +++++++++ 2 files changed, 61 insertions(+), 10 deletions(-) diff --git a/experimental/saiexperimentaldasheni.h b/experimental/saiexperimentaldasheni.h index 9f5cddc69..475064071 100644 --- a/experimental/saiexperimentaldasheni.h +++ b/experimental/saiexperimentaldasheni.h @@ -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, @@ -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, @@ -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, @@ -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, @@ -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, @@ -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; diff --git a/experimental/saiportextensions.h b/experimental/saiportextensions.h index 22c25d065..5002bbbaf 100644 --- a/experimental/saiportextensions.h +++ b/experimental/saiportextensions.h @@ -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