From 6962992cbc1ee612ab1ad7ed018afde8909f8074 Mon Sep 17 00:00:00 2001 From: rpmarvell Date: Wed, 19 Apr 2023 04:21:24 -0700 Subject: [PATCH] swss-common: WRED and ECN statistics specific changes * Flexcounter macros are defined * Statistics capability get lua script updated with new Capability API support Signed-off-by: rpmarvell --- common/consumer_table_pops.lua | 4 +++- common/schema.h | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/common/consumer_table_pops.lua b/common/consumer_table_pops.lua index 2cf07923b..959bcd0fa 100644 --- a/common/consumer_table_pops.lua +++ b/common/consumer_table_pops.lua @@ -88,7 +88,9 @@ for i = n, 1, -3 do op == 'attr_enum_values_capability_query' or op == 'attr_enum_values_capability_response' or op == 'object_type_get_availability_query' or - op == 'object_type_get_availability_response' then + op == 'object_type_get_availability_response' or + op == 'stats_capability_query' or + op == 'stats_capability_response' then -- do not modify db entries when spotted those commands, they are used to -- trigger actions or get data synchronously from database diff --git a/common/schema.h b/common/schema.h index e4e50bf80..724089c61 100644 --- a/common/schema.h +++ b/common/schema.h @@ -254,6 +254,8 @@ namespace swss { #define STATS_MODE_READ_AND_CLEAR "STATS_MODE_READ_AND_CLEAR" #define QUEUE_PLUGIN_FIELD "QUEUE_PLUGIN_LIST" #define PORT_PLUGIN_FIELD "PORT_PLUGIN_LIST" +#define WRED_QUEUE_PLUGIN_FIELD "WRED_QUEUE_PLUGIN_LIST" +#define WRED_PORT_PLUGIN_FIELD "WRED_PORT_PLUGIN_LIST" #define MACSEC_SA_PLUGIN_FIELD "MACSEC_SA_PLUGIN_LIST" #define RIF_PLUGIN_FIELD "RIF_PLUGIN_LIST" #define PG_PLUGIN_FIELD "PG_PLUGIN_LIST" @@ -497,6 +499,10 @@ namespace swss { #define STATE_ACL_TABLE_TABLE_NAME "ACL_TABLE_TABLE" #define STATE_ACL_RULE_TABLE_NAME "ACL_RULE_TABLE" +/***** Counter capability tables for Queue and Port ****/ +#define STATE_QUEUE_COUNTER_CAPABILITIES_NAME "QUEUE_COUNTER_CAPABILITIES" +#define STATE_PORT_COUNTER_CAPABILITIES_NAME "PORT_COUNTER_CAPABILITIES" + /***** PROFILE DATABASE *****/ #define PROFILE_DELETE_TABLE "PROFILE_DELETE"