Skip to content

Commit 72a7f3a

Browse files
authored
[counterpoll]:enable/disable pfcwd counter query (#526)
Signed-off-by: Sihui Han <[email protected]>
1 parent 27b29e3 commit 72a7f3a

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

orchagent/flexcounterorch.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "notifier.h"
66
#include "redisclient.h"
77
#include "sai_serialize.h"
8+
#include "pfcwdorch.h"
89

910
extern sai_port_api_t *sai_port_api;
1011

@@ -14,6 +15,7 @@ unordered_map<string, string> flexCounterGroupMap =
1415
{
1516
{"PORT", PORT_STAT_COUNTER_FLEX_COUNTER_GROUP},
1617
{"QUEUE", QUEUE_STAT_COUNTER_FLEX_COUNTER_GROUP},
18+
{"PFCWD", PFC_WD_FLEX_COUNTER_GROUP},
1719
};
1820

1921

orchagent/pfcwdorch.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#include "notifier.h"
1010
#include "redisclient.h"
1111

12-
#define PFC_WD_FLEX_COUNTER_GROUP "PFC_WD"
1312
#define PFC_WD_GLOBAL "GLOBAL"
1413
#define PFC_WD_ACTION "action"
1514
#define PFC_WD_DETECTION_TIME "detection_time"

orchagent/pfcwdorch.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ extern "C" {
1212
#include "sai.h"
1313
}
1414

15+
#define PFC_WD_FLEX_COUNTER_GROUP "PFC_WD"
16+
1517
enum class PfcWdAction
1618
{
1719
PFC_WD_ACTION_UNKNOWN,

0 commit comments

Comments
 (0)