Skip to content

Commit 3f56983

Browse files
committed
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 <[email protected]>
1 parent 127b1c8 commit 3f56983

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

common/consumer_table_pops.lua

+3-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ for i = n, 1, -3 do
8888
op == 'attr_enum_values_capability_query' or
8989
op == 'attr_enum_values_capability_response' or
9090
op == 'object_type_get_availability_query' or
91-
op == 'object_type_get_availability_response' then
91+
op == 'object_type_get_availability_response' or
92+
op == 'stats_capability_query' or
93+
op == 'stats_capability_response' then
9294

9395
-- do not modify db entries when spotted those commands, they are used to
9496
-- trigger actions or get data synchronously from database

common/schema.h

+6
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,8 @@ namespace swss {
254254
#define STATS_MODE_READ_AND_CLEAR "STATS_MODE_READ_AND_CLEAR"
255255
#define QUEUE_PLUGIN_FIELD "QUEUE_PLUGIN_LIST"
256256
#define PORT_PLUGIN_FIELD "PORT_PLUGIN_LIST"
257+
#define WRED_QUEUE_PLUGIN_FIELD "WRED_QUEUE_PLUGIN_LIST"
258+
#define WRED_PORT_PLUGIN_FIELD "WRED_PORT_PLUGIN_LIST"
257259
#define MACSEC_SA_PLUGIN_FIELD "MACSEC_SA_PLUGIN_LIST"
258260
#define RIF_PLUGIN_FIELD "RIF_PLUGIN_LIST"
259261
#define PG_PLUGIN_FIELD "PG_PLUGIN_LIST"
@@ -497,6 +499,10 @@ namespace swss {
497499
#define STATE_ACL_TABLE_TABLE_NAME "ACL_TABLE_TABLE"
498500
#define STATE_ACL_RULE_TABLE_NAME "ACL_RULE_TABLE"
499501

502+
/***** Counter capability tables for Queue and Port ***/
503+
#define STATE_QUEUE_COUNTER_CAPABILITIES_NAME "QUEUE_COUNTER_CAPABILITIES"
504+
#define STATE_PORT_COUNTER_CAPABILITIES_NAME "PORT_COUNTER_CAPABILITIES"
505+
500506
/***** PROFILE DATABASE *****/
501507

502508
#define PROFILE_DELETE_TABLE "PROFILE_DELETE"

0 commit comments

Comments
 (0)