diff options
author | Brian Russell <brian@graphiant.com> | 2021-01-27 11:34:33 +0000 |
---|---|---|
committer | Neale Ranns <neale@graphiant.com> | 2021-02-02 14:58:07 +0000 |
commit | a71ed7869fa59884a61356a997cea81344c19dde (patch) | |
tree | 8dd85694d6366d7b26d70ab514e1161a0391b2b4 /src/vnet/policer/police.h | |
parent | bad1d35d7d4ed37f046d17fe7a0b6f7d8897d3d6 (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/police.h')
-rw-r--r-- | src/vnet/policer/police.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vnet/policer/police.h b/src/vnet/policer/police.h index 1005a620ccd..d135e43ef3e 100644 --- a/src/vnet/policer/police.h +++ b/src/vnet/policer/police.h @@ -22,6 +22,8 @@ typedef enum POLICE_VIOLATE = 2, } policer_result_e; +#define NUM_POLICE_RESULTS 3 + // This is the hardware representation of the policer. // To be multithread-safe, the policer is accessed through a spin-lock // on the lock field. (For a policer update operation, 24B needs to be |