Skip to content

Commit

Permalink
swss-common: WRED and ECN statistics specific changes (#777)
Browse files Browse the repository at this point in the history
* Flexcounter macros are defined
* Statistics capability get lua script updated with new Capability API support

Signed-off-by: rpmarvell <[email protected]>
  • Loading branch information
rpmarvell authored May 31, 2023
1 parent 0dcede2 commit e266a97
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion common/consumer_table_pops.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions common/schema.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -498,6 +500,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"
Expand Down

0 comments on commit e266a97

Please sign in to comment.