Skip to content

Commit

Permalink
[counterpoll]:enable/disable pfcwd counter query (#526)
Browse files Browse the repository at this point in the history
Signed-off-by: Sihui Han <[email protected]>
  • Loading branch information
sihuihan88 authored Jun 25, 2018
1 parent 27b29e3 commit 72a7f3a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions orchagent/flexcounterorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "notifier.h"
#include "redisclient.h"
#include "sai_serialize.h"
#include "pfcwdorch.h"

extern sai_port_api_t *sai_port_api;

Expand All @@ -14,6 +15,7 @@ unordered_map<string, string> flexCounterGroupMap =
{
{"PORT", PORT_STAT_COUNTER_FLEX_COUNTER_GROUP},
{"QUEUE", QUEUE_STAT_COUNTER_FLEX_COUNTER_GROUP},
{"PFCWD", PFC_WD_FLEX_COUNTER_GROUP},
};


Expand Down
1 change: 0 additions & 1 deletion orchagent/pfcwdorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include "notifier.h"
#include "redisclient.h"

#define PFC_WD_FLEX_COUNTER_GROUP "PFC_WD"
#define PFC_WD_GLOBAL "GLOBAL"
#define PFC_WD_ACTION "action"
#define PFC_WD_DETECTION_TIME "detection_time"
Expand Down
2 changes: 2 additions & 0 deletions orchagent/pfcwdorch.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ extern "C" {
#include "sai.h"
}

#define PFC_WD_FLEX_COUNTER_GROUP "PFC_WD"

enum class PfcWdAction
{
PFC_WD_ACTION_UNKNOWN,
Expand Down

0 comments on commit 72a7f3a

Please sign in to comment.