summaryrefslogtreecommitdiffstats
path: root/src/vnet/policer/police.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/policer/police.h')
-rw-r--r--src/vnet/policer/police.h2
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