summaryrefslogtreecommitdiffstats
path: root/src/vnet/policer/policer.h
diff options
context:
space:
mode:
authorBrian Russell <brian@graphiant.com>2021-01-27 11:34:33 +0000
committerNeale Ranns <neale@graphiant.com>2021-02-02 14:58:07 +0000
commita71ed7869fa59884a61356a997cea81344c19dde (patch)
tree8dd85694d6366d7b26d70ab514e1161a0391b2b4 /src/vnet/policer/policer.h
parentbad1d35d7d4ed37f046d17fe7a0b6f7d8897d3d6 (diff)
policer: add counters
Add counters to the policer against each of the 3 possible results: conform, exceed and violate. Type: improvement Signed-off-by: Brian Russell <brian@graphiant.com> Change-Id: Ia98a2f5655df6873259197d6bbf0ff2709b7d60e
Diffstat (limited to 'src/vnet/policer/policer.h')
-rw-r--r--src/vnet/policer/policer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vnet/policer/policer.h b/src/vnet/policer/policer.h
index b7c1d616cef..2e57e4654bd 100644
--- a/src/vnet/policer/policer.h
+++ b/src/vnet/policer/policer.h
@@ -46,6 +46,8 @@ typedef struct
extern vnet_policer_main_t vnet_policer_main;
+extern vlib_combined_counter_main_t policer_counters[];
+
typedef enum
{
VNET_POLICER_INDEX_BY_SW_IF_INDEX,